|
|
|
|
|
|
|
static int get_remap_key (p4char *replace[]) { int i, n, m; if (PFE.keyptr) { if (*PFE.keyptr == |
int
p4_getekey (void)
{
int key = get_remap_key ((p4char **) raw2ekey);
if (key == P4_KEY_kb)
return |
int p4_getwskey (void) { return get_remap_key ((p4char **) raw2ws) & ~0x100; } |
int p4_ekeypressed (void) { return (PFE.keyptr && *PFE.keyptr) || p4_keypressed (); } |
int p4_isprint (int c) { return |
void |
int p4_change_case (int ch) { if (ch >= 0x100) return ch; if (islower (ch)) return toupper (ch); if (isupper (ch)) return tolower (ch); |
|
|
void p4_interactive_terminal () { if (! PFE_set.isnotatty) (*PFE.term->interactive_terminal)(); } |
void p4_system_terminal () { if (! PFE_set.isnotatty) (*PFE.term->system_terminal)(); } |
void p4_query_winsize () { if (! PFE_set.isnotatty) (*PFE.term->query_winsize)(); } |
int p4_tty_interrupt_key (char ch) { return (*PFE.term->tty_interrupt_key)(ch); } |
int p4_keypressed () { return (*PFE.term->c_keypressed)(); } |
int p4_getkey () { return (*PFE.term->c_getkey)(); } |
void p4_putc_noflush (char c) { (*PFE.term->c_putc_noflush)(c); } |
void p4_putc (char c) { (*PFE.term->c_putc)(c); } |
void p4_puts (const char* s) { (*PFE.term->c_puts)(s); } |
void p4_put_flush () { (*PFE.term->c_put_flush) (); } |
void p4_gotoxy(int x, int y) { (*PFE.term->c_gotoxy)(x,y); } |
void p4_wherexy(int* x, int* y) { (*PFE.term->c_wherexy)(x,y); } |
void p4_goleft (void) { (*PFE.term->tput) (P4_TERM_GOLEFT); } |
void p4_goright (void) { (*PFE.term->tput) (P4_TERM_GORIGHT); } |
void p4_goup (void) { (*PFE.term->tput) (P4_TERM_GOUP); } |
void p4_godown (void) { (*PFE.term->tput) (P4_TERM_GODOWN); } |
void p4_dot_home (void) { (*PFE.term->tput) (P4_TERM_HOME); } |
void p4_dot_clrscr (void) { (*PFE.term->tput) (P4_TERM_CLRSCR); } |
void p4_dot_clreol (void) { (*PFE.term->tput) (P4_TERM_CLREOL); } |
void p4_dot_clrdown (void) { (*PFE.term->tput) (P4_TERM_CLRDOWN); } |
void p4_dot_bell (void) { (*PFE.term->tput) (P4_TERM_BELL); } |
void p4_dot_normal (void) { (*PFE.term->tput) (P4_TERM_NORMAL); } |
void p4_dot_standout_on (void) { (*PFE.term->tput) (P4_TERM_BOLD_ON); } |
void p4_dot_standout_off (void) { (*PFE.term->tput) (P4_TERM_BOLD_OFF); } |
void p4_dot_bright (void) { (*PFE.term->tput) (P4_TERM_BRIGHT); } |
void p4_dot_reverse (void) { (*PFE.term->tput) (P4_TERM_REVERSE); } |
void p4_dot_blinking (void) { (*PFE.term->tput) (P4_TERM_BLINKING); } |
void p4_dot_underline_on (void) { (*PFE.term->tput) (P4_TERM_UNDERLINE_ON); } |
void p4_dot_underline_off (void){ (*PFE.term->tput) (P4_TERM_UNDERLINE_OFF); } |
|
void p4_cleanup_terminal (void) { if (PFE.term->fini) (*PFE.term->fini)(); PFE.term = 0; } |
|