#include <keyb.h>
Inheritance diagram for Keyb:
Public Member Functions | |
int | getchar (bool blocking=true) |
read a charcater from the input. | |
int | write (char const *str, size_t len) |
Write a string of len chacters to the output. | |
Mword | get_attributes () const |
Console attributes. | |
Private Types | |
enum | { K_RDWR = 0x60, K_STATUS = 0x64, K_CMD = 0x64, K_OBUF_FUL = 0x01, K_IBUF_FUL = 0x02, K_SYSFLAG = 0x04, K_CMD_DATA = 0x08, K_KBD_INHIBIT = 0x10, K_AUX_OBUF_FUL = 0x20, K_TIMEOUT = 0x40, K_PARITY_ERROR = 0x80, KC_CMD_READ = 0x20, KC_CMD_WRITE = 0x60, KC_CMD_DIS_AUX = 0xa7, KC_CMD_ENB_AUX = 0xa8, KC_CMD_TEST_AUX = 0xa9, KC_CMD_SELFTEST = 0xaa, KC_CMD_TEST = 0xab, KC_CMD_DUMP = 0xac, KC_CMD_DISABLE = 0xad, KC_CMD_ENABLE = 0xae, KC_CMD_RDKBD = 0xc4, KC_CMD_WIN = 0xd0, KC_CMD_WOUT = 0xd1, KC_CMD_ECHO = 0xee, KC_CMD_PULSE = 0xff, K_CMD_LEDS = 0xed, K_CB_ENBLIRQ = 0x01, K_CB_SETSYSF = 0x04, K_CB_INHBOVR = 0x08, K_CB_DISBLE = 0x10, K_LED_SCRLLK = 0x1, K_LED_NUMLK = 0x2, K_LED_CAPSLK = 0x4, K_ENABLETMR2 = 0x01, K_SPKRDATA = 0x02, K_ENABLEPRTB = 0x04, K_EIOPRTB = 0x08, K_REFRESHB = 0x10, K_OUT2B = 0x20, K_ICKB = 0x40, KO_SYSRESET = 0x01, KO_GATE20 = 0x02, KO_AUX_DATA_OUT = 0x04, KO_AUX_CLOCK = 0x08, KO_OBUF_FUL = 0x10, KO_AUX_OBUF_FUL = 0x20, KO_CLOCK = 0x40, KO_DATA_OUT = 0x80 } |
Provides an empty implentation for write(...).
|
|
Console attributes.
Reimplemented from Console. |
|
read a charcater from the input.
Reimplemented from Console. |
|
Write a string of len chacters to the output.
Reimplemented from Console. |