vemu.

component

VemuTerminal

xterm.js console bound to the emulator's UART. Machine output is written to the terminal; keystrokes are passed through raw (picocom-style) as UART input. Auto-fits to its container and re-fits on resize.

function VemuTerminal(props: VemuTerminalProps): JSX.Element

Props

NameTypeDescription
setUartSink(cb: (b: Uint8Array) => void) => voidRegisters the UART output sink with the hook (`useVemu().setUartSink`).
sendUart(bytes: Uint8Array) => voidSends keystrokes to the machine as UART input bytes (`useVemu().sendUart`).

Examples

const { setUartSink, sendUart } = useVemu();
<VemuTerminal setUartSink={setUartSink} sendUart={sendUart} />