small software-rendered rust tty
Diffstat (limited to 'src/main.rs')
| -rw-r--r-- | src/main.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main.rs b/src/main.rs index 944318e..d59817b 100644 --- a/src/main.rs +++ b/src/main.rs @@ -223,7 +223,7 @@ fn main() -> Result<()> { while let Ok(x) = trx.recv_timeout(Duration::from_millis(16)) { f.write_all(&x)?; for char in x { - t.rx(char); + t.rx(char, pty.as_fd()); } } let i = render::render(&mut t, w.get_size(), ppem); @@ -238,7 +238,7 @@ fn main() -> Result<()> { fn tpaxrse() { println!("-------------------"); let mut x = TerminalInputParser::new(); - for c in "\x1b[?1049h".as_bytes() { + for c in "\x1b[6n".as_bytes() { use ctlfun::TerminalInput::*; match x.parse_byte(*c) { Char(x) => { |