void my_select() { g_list.first->underline = 1; output_list(); my_setkey(); set_invisible_curs(); my_getkey(); }
unsigned char sys_getkey() /*{{{*/ { unsigned int shift; unsigned int i; unsigned char chbuf[16]; int timeout; timeout = 300; if (BIOSKEY(1) == 0) while (!sys_input_pending(&timeout, 0)) { if (Display_Time) { JWindow->trashed = 1; update((Line *) NULL, 0, 1, 0); } } #ifdef HAS_MOUSE /* This can only be set by the mouse */ if (Input_Buffer_Len) return my_getkey (); if (JMouse_Hide_Mouse_Hook != NULL) (*JMouse_Hide_Mouse_Hook) (0); #endif shift = *Shift_Ptr & 0xF; i = BIOSKEY(0); i = jed_scan_to_key (i, shift, chbuf); while (i > 1) { int ch; i--; ch = chbuf[i]; ungetkey (&ch); } return chbuf[0]; }