-
Notifications
You must be signed in to change notification settings - Fork 19
Open
Labels
enhancementNew feature or requestNew feature or request
Description
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.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request