⚠️ VeridianOS Kernel Documentation - This is low-level kernel code. All functions are unsafe unless explicitly marked otherwise. no_std

read_char

Function read_char 

Source
pub fn read_char() -> Option<u8>
Expand description

Read a single character from any available input source (non-blocking).

On x86_64: polls PS/2 keyboard controller, checks ring buffer, then serial. On AArch64: checks PL011 UART. On RISC-V: checks SBI console_getchar.