39 #define GETKEY_TIMEOUT ( TICKS_PER_SEC / 4 ) 76 if ( character !=
ESC )
84 return (
toupper ( character ) -
'A' + 1 );
88 n = ( ( n * 10 ) + ( character -
'0' ) );
91 if ( character >= 0x40 )
int getkey(unsigned long timeout)
Get single keypress.
FILE_LICENCE(GPL2_OR_LATER_OR_UBDL)
static int isalpha(int character)
Check if character is alphabetic.
uint32_t start
Starting offset.
static int toupper(int character)
Convert character to upper case.
static int isdigit(int character)
Check if character is a decimal digit.
#define ESC
Escape character.
int getchar(void)
Read a single character from any console.
void cpu_nap(void)
Sleep with interrupts enabled until next CPU interrupt.
void step(void)
Single-step a single process.
static int getchar_timeout(unsigned long timeout)
Read character from console if available within timeout period.
unsigned long currticks(void)
Get current system time in ticks.
#define KEY_ANSI(n, terminator)
Construct ANSI escape sequence key value.
int iskey(void)
Check for available input on any console.