rewriting some stuff
This commit is contained in:
25
kte/ark/input.c
Normal file
25
kte/ark/input.c
Normal 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;
|
||||
}
|
||||
Reference in New Issue
Block a user