Skip to main content

spawn_local_input

Function spawn_local_input 

fn spawn_local_input<A: WindowsApi + Clone + 'static>(
    api: A,
    writer: Arc<Mutex<Box<dyn Write + Send>>>,
    master: Box<dyn MasterPty + Send>,
)
Expand description

Forward this window’s own keystrokes to the PTY master from a dedicated thread, so a broadcast line stays editable here, and resize the PTY with the console window.

§Arguments

  • api - The Windows API implementation to use.
  • writer - Shared PTY master writer.
  • master - PTY master to resize.