diff options
author | Joe Wilm <joe@jwilm.com> | 2017-04-18 10:41:11 -0700 |
---|---|---|
committer | Joe Wilm <joe@jwilm.com> | 2017-04-18 19:53:31 -0700 |
commit | a27f166ef92b7782ee5833bf51d8559d1bb47934 (patch) | |
tree | d8f321f8cac94b5a51316147e739bde62008aa90 /src/ansi.rs | |
parent | 35f8f152cf80526155fdba8676758eea25202d28 (diff) | |
download | alacritty-a27f166ef92b7782ee5833bf51d8559d1bb47934.tar.gz alacritty-a27f166ef92b7782ee5833bf51d8559d1bb47934.zip |
Implement LF/NL
Diffstat (limited to 'src/ansi.rs')
-rw-r--r-- | src/ansi.rs | 11 |
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 + }) } } } |