aboutsummaryrefslogtreecommitdiff
path: root/src/ansi.rs
diff options
context:
space:
mode:
authorJoe Wilm <joe@jwilm.com>2016-08-19 20:34:33 -0700
committerJoe Wilm <joe@jwilm.com>2016-08-19 20:34:33 -0700
commit568c7d10f2e3b94167439079665fdebe76ee716c (patch)
tree974a350ee603e87f752c73ab3bded3566efb01fc /src/ansi.rs
parent1fe4edf44963bd4a412bff04eb3e99c273a4e6ec (diff)
downloadalacritty-568c7d10f2e3b94167439079665fdebe76ee716c.tar.gz
alacritty-568c7d10f2e3b94167439079665fdebe76ee716c.zip
Add Origin mode to parser
Diffstat (limited to 'src/ansi.rs')
-rw-r--r--src/ansi.rs7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/ansi.rs b/src/ansi.rs
index b2221cbe..73454073 100644
--- a/src/ansi.rs
+++ b/src/ansi.rs
@@ -68,10 +68,12 @@ pub struct Parser {
pub enum Mode {
/// ?1
CursorKeys = 1,
- /// ?25
- ShowCursor = 25,
+ /// ?6
+ Origin = 6,
/// ?12
BlinkingCursor = 12,
+ /// ?25
+ ShowCursor = 25,
/// ?1049
SwapScreenAndSetRestoreCursor = 1049,
}
@@ -84,6 +86,7 @@ impl Mode {
if private {
Some(match num {
1 => Mode::CursorKeys,
+ 6 => Mode::Origin,
12 => Mode::BlinkingCursor,
25 => Mode::ShowCursor,
1049 => Mode::SwapScreenAndSetRestoreCursor,