#include <oskit/x86/pc/direct_console.h>int direct_cons_getchar(void);
Read a character from the PC keyboard. If none is available, this routine loops polling the keyboard status register until a character is available.Supports only a subset of the available key presses. In particular, only the shifted and unshifted printable ASCII characters along with Escape, Backspace, Tab, and Carriage return. It does not support the remaining control characters or multi-character (function) keys.
Returns the character read.
- base_critical_enter
- 10.2.5
- base_critical_leave
- 10.2.5
- inb
- 10.3.7