diff options
author | Joe Wilm <joe@jwilm.com> | 2017-04-30 22:10:38 -0700 |
---|---|---|
committer | Joe Wilm <jwilm@users.noreply.github.com> | 2017-05-01 08:21:42 -0700 |
commit | 09031decc0510c107804aea490e437176bbb3535 (patch) | |
tree | 56efa5c64e9b6ad7ecd2dd92fe5e55aaf03a33e7 /src/ansi.rs | |
parent | 9c557407d6eb49d247ca1206660b4c3af64a6e7f (diff) | |
download | alacritty-09031decc0510c107804aea490e437176bbb3535.tar.gz alacritty-09031decc0510c107804aea490e437176bbb3535.zip |
Support insert mode
Diffstat (limited to 'src/ansi.rs')
-rw-r--r-- | src/ansi.rs | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/ansi.rs b/src/ansi.rs index cf7bbea2..18636760 100644 --- a/src/ansi.rs +++ b/src/ansi.rs @@ -275,6 +275,13 @@ pub enum Mode { /// * resets DECLRMM to unavailable /// * clears data from the status line (if set to host-writable) DECCOLM = 3, + /// IRM Insert Mode + /// + /// NB should be part of non-private mode enum + /// + /// * `CSI 4 h` change to insert mode + /// * `CSI 4 l` reset to replacement mode + Insert = 4, /// ?6 Origin = 6, /// ?7 @@ -322,6 +329,7 @@ impl Mode { }) } else { Some(match num { + 4 => Mode::Insert, 20 => Mode::LineFeedNewLine, _ => return None }) |