aboutsummaryrefslogtreecommitdiff
path: root/src/ansi.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/ansi.rs')
-rw-r--r--src/ansi.rs11
1 files changed, 9 insertions, 2 deletions
diff --git a/src/ansi.rs b/src/ansi.rs
index d2c255a5..df445031 100644
--- a/src/ansi.rs
+++ b/src/ansi.rs
@@ -266,6 +266,11 @@ pub enum Mode {
LineWrap = 7,
/// ?12
BlinkingCursor = 12,
+ /// 20
+ ///
+ /// NB This is actually a private mode. We should consider adding a second
+ /// enumeration for public/private modesets.
+ LineFeedNewLine = 20,
/// ?25
ShowCursor = 25,
/// ?1000
@@ -300,8 +305,10 @@ impl Mode {
_ => return None
})
} else {
- // TODO
- None
+ Some(match num {
+ 20 => Mode::LineFeedNewLine,
+ _ => return None
+ })
}
}
}