#include <sys/indirect.h>

#define TERMINAL_MODE 0
#define PDAKB_MODE 1

#define BACKSPACE 0x08
#define TAB 0x09
#define ENTER 0x0a
#define ESCAPE 0x1b

#define KEY_DOWN 0x102
#define KEY_UP 0x103
#define KEY_LEFT 0x104
#define KEY_RIGHT 0x105
#define KEY_BACKSPACE BACKSPACE

typedef struct {
  IL super;
  int (far *getch)();
  int (far *setmode)(int mode);
  int (far *init)();
  void (far *close)();
} KeybIL;
