Hello,
I need to be able to:
- write a string/a vector of chars to the terminal
- read the terminal
For 2., here is what I came up with:
fn read_terminal(&self) -> String {
self.terminal_backend
.last_content()
.grid
.iter_from(Point::new(Line(0), Column(0)))
.map(|cell| cell.c)
.collect::<String>()
}
For 1., I think using TerminalBackend::process_command() is the right option, but BackendCommand is not exposed by lib.rs so this method cannot be called.
Hello,
I need to be able to:
For 2., here is what I came up with:
For 1., I think using
TerminalBackend::process_command()is the right option, butBackendCommandis not exposed bylib.rsso this method cannot be called.