|
|
|
|
char * term_wat_rawkey_string [P4_NUM_KEYS] = |
static int c_interrupt_key (char ch) { return 0; } |
static void c_interactive_terminal (void) {} |
static void c_system_terminal (void) {} |
static void c_query_winsize (void) {} |
|
|
|
static int c_prepare_terminal (void) { |
static void
c_cleanup_terminal (void)
{
return; |
static int c_keypressed (void) { |
static int |
|
|
|
static void c_putc_noflush (char c) { switch (c) { case |
static void c_put_flush (void) { |
static void c_putc (char c) { c_putc_noflush (c); c_put_flush (); } |
static void c_puts (const char *s) { while (*s) c_putc_noflush (*s++); c_put_flush (); } |
static void c_gotoxy (int x, int y) { |
static void c_wherexy (int *x, int *y) { |
static void |
static void c_clreol (void) { |
static void c_clrdown (void) { |
enum { none, bold, faint, italic, blink = 5, rapid_blink, reverse_video, concealed }; |
static int attrib; |
static void setattr (int attr) { if (attr == none) { attrib = 0; CPUTS ( |
static void clrattr (int attr) { int i; attrib &= ~(1 << attr); CPUTS ( |
static void
c_tput (int attr)
{
switch (attr)
{
case P4_TERM_GOLEFT: addxy (-1, 0); break;
case P4_TERM_GORIGHT: addxy ( 1, 0); break;
case P4_TERM_GOUP: addxy ( 0, -1); break;
case P4_TERM_GODOWN: addxy ( 0, 1); break;
case P4_TERM_HOME: c_gotoxy (0, 0); break;
case P4_TERM_CLRSCR: c_gotoxy (0, 0); c_clrdown (); break;
case P4_TERM_CLRDOWN: c_clrdown (); break;
case P4_TERM_CLREOL: c_clreol (); break;
case P4_TERM_BELL: CPUTS ( |
|
p4_term_struct p4_term_ios = { |
|