rewriting some stuff

This commit is contained in:
2020-02-18 22:29:31 +00:00
parent 63319f3d35
commit e9fcf3842f
8 changed files with 66 additions and 0 deletions

25
kte/ark/input.c Normal file
View File

@@ -0,0 +1,25 @@
/*
* input.c: process key strokes and what not.
*/
#include <stdio.h>
#include "defs.h"
/*
* given the key, maybe do something with it, and return whether this
* means the screen should be refreshed.
*/
int
handle_keypress(int c)
{
static int mode = MODE_NORMAL;
if (mode == MODE_NORMAL) {
printf("%02x", c);
nextline();
}
return 1;
}