diff options
author | Jesse Luehrs <doy@tozt.net> | 2019-11-01 13:20:38 -0400 |
---|---|---|
committer | Jesse Luehrs <doy@tozt.net> | 2019-11-01 13:53:32 -0400 |
commit | 96f9c0e249d6434606fa1613619b89dba03979ba (patch) | |
tree | d18a206ab63523d189db66f30fc0c0777f6fd3f9 /src | |
parent | 91726d4e0695ac4914885aada3304992e51bfb7f (diff) | |
download | vt100-rust-96f9c0e249d6434606fa1613619b89dba03979ba.tar.gz vt100-rust-96f9c0e249d6434606fa1613619b89dba03979ba.zip |
implement vt and ff
Diffstat (limited to 'src')
-rw-r--r-- | src/screen.rs | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/screen.rs b/src/screen.rs index 96da40a..667a056 100644 --- a/src/screen.rs +++ b/src/screen.rs @@ -162,6 +162,14 @@ impl State { self.grid_mut().row_inc_scroll(1); } + fn vt(&mut self) { + self.lf(); + } + + fn ff(&mut self) { + self.lf(); + } + fn cr(&mut self) { self.grid_mut().col_set(0); } @@ -522,6 +530,8 @@ impl vte::Perform for State { 8 => self.bs(), 9 => self.tab(), 10 => self.lf(), + 11 => self.vt(), + 12 => self.ff(), 13 => self.cr(), _ => {} } |