MCPcopy Index your code
hub / github.com/endbasic/endbasic / read_key_from_stdin

Function read_key_from_stdin

std/src/console/mod.rs:478–490  ·  view source on GitHub ↗

Reads a single key from stdin when not attached to a TTY. Because characters are not visible to us until a newline is received, this reads complete lines and buffers them in memory inside the given `buffer`.

(buffer: &mut VecDeque<Key>)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 2

stdio_key_handlerMethod · 0.85
read_keyMethod · 0.85

Calls 2

line_to_keysFunction · 0.85
is_emptyMethod · 0.45

Tested by

no test coverage detected