diff options
author | Michael Brumlow <mbrumlow@gmail.com> | 2017-01-11 21:00:29 -0600 |
---|---|---|
committer | Joe Wilm <jwilm@users.noreply.github.com> | 2017-01-11 22:10:48 -0800 |
commit | 06d213fbc760122e97fe64b57bd29a6e0d1a48f4 (patch) | |
tree | edfd78d3e6cae9099e91e0d2df8afc4997bcb13c /src/ansi.rs | |
parent | a7fc46afce5e7eb7bd44749def28773c3211cab0 (diff) | |
download | alacritty-06d213fbc760122e97fe64b57bd29a6e0d1a48f4.tar.gz alacritty-06d213fbc760122e97fe64b57bd29a6e0d1a48f4.zip |
Proposal for line wrap - ^[[7h and ^[[7l (private)
These changes provide support for disabling auto line wrap which is
currently default to on.
'tput rman' will now disable auto line wrap and alacritty will now not
automatically wrap lines.
'tput sman' will now (re)enable auto line wrap and alacritty will now
automatically wrap lines once it reaches the end of the line.
My testing showed this to work the same as gnome-terminal.
I should note that simply having ^[[7h or ^[[7l in a recording does not
enable and disable line wrapping. This is the same behavior as
gnome-terminal and xterm. Those cape codes come through as private
which are not handled yet. I behave this is the correct behavior.
Diffstat (limited to 'src/ansi.rs')
-rw-r--r-- | src/ansi.rs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/ansi.rs b/src/ansi.rs index b8b063f4..81a48987 100644 --- a/src/ansi.rs +++ b/src/ansi.rs @@ -247,6 +247,8 @@ pub enum Mode { CursorKeys = 1, /// ?6 Origin = 6, + /// ?7 + LineWrap = 7, /// ?12 BlinkingCursor = 12, /// ?25 @@ -272,6 +274,7 @@ impl Mode { Some(match num { 1 => Mode::CursorKeys, 6 => Mode::Origin, + 7 => Mode::LineWrap, 12 => Mode::BlinkingCursor, 25 => Mode::ShowCursor, 1000 => Mode::ReportMouseClicks, |