kst/ke/main.c

33 lines
330 B
C
Raw Normal View History

#include <ctype.h>
2020-02-08 07:07:59 +00:00
#include <errno.h>
#include <stdio.h>
#include <stdlib.h>
#include <termios.h>
#include <unistd.h>
#include "display.h"
#include "keys.h"
2020-02-08 07:07:59 +00:00
#include "terminal.h"
#include "util.h"
2020-02-08 07:07:59 +00:00
void
loop()
{
2020-02-08 07:07:59 +00:00
while (1) {
process_keypress();
2020-02-08 07:07:59 +00:00
}
}
int
main()
{
2020-02-08 07:07:59 +00:00
setup_terminal();
display_clear();
2020-02-08 07:07:59 +00:00
loop();
return 0;
}