From 568c7d10f2e3b94167439079665fdebe76ee716c Mon Sep 17 00:00:00 2001 From: Joe Wilm Date: Fri, 19 Aug 2016 20:34:33 -0700 Subject: Add Origin mode to parser --- src/ansi.rs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'src/ansi.rs') 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, -- cgit v1.2.3-54-g00ecf