MCPcopy Create free account
hub / github.com/NetHack/NetHack / tty_number_pad

Function tty_number_pad

win/tty/termcap.c:358–374  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

356}
357
358void
359tty_number_pad(int state)
360{
361 switch (state) {
362 case -1: /* activate keypad mode (escape sequences) */
363 if (KS && *KS)
364 xputs(KS);
365 break;
366 case 1: /* activate numeric mode for keypad (digits) */
367 if (KE && *KE)
368 xputs(KE);
369 break;
370 case 0: /* don't need to do anything--leave terminal as-is */
371 default:
372 break;
373 }
374}
375
376#ifdef TERMLIB
377extern void (*decgraphics_mode_callback)(void); /* defined in symbols.c */

Callers 1

term_start_screenFunction · 0.70

Calls 1

xputsFunction · 0.70

Tested by

no test coverage detected