Skip to main content

clear_input_reader

Function clear_input_reader 

Source
pub fn clear_input_reader()
Expand description

Forget any installed reader, so the next read finds the buffer the host installed directly rather than calling back.

The crash debugger’s re-run path (§9.7) needs this: it re-installs the same input on each restart to keep re-runs identical, and a reader that fired again would read a stdin that is now at EOF.