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.ElementProps
| Name | Type | Description |
|---|---|---|
setUartSink | (cb: (b: Uint8Array) => void) => void | Registers the UART output sink with the hook (`useVemu().setUartSink`). |
sendUart | (bytes: Uint8Array) => void | Sends keystrokes to the machine as UART input bytes (`useVemu().sendUart`). |
Examples
const { setUartSink, sendUart } = useVemu();
<VemuTerminal setUartSink={setUartSink} sendUart={sendUart} />