diff options
author | Kirill Chibisov <contact@kchibisov.com> | 2022-02-14 19:10:13 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-02-14 19:10:13 +0300 |
commit | ed5dbc11183030367c9a510a9706f6791b54430f (patch) | |
tree | 3fd9bf595e164c8d89fb1215c8d68dc2d913324e /alacritty_terminal/src/term/mod.rs | |
parent | 774eb03f4ff01f692f645d930da54990bf92d19c (diff) | |
download | alacritty-ed5dbc11183030367c9a510a9706f6791b54430f.tar.gz alacritty-ed5dbc11183030367c9a510a9706f6791b54430f.zip |
Add support for dashed and dotted underlines
This finishes implementation of underline styles provided by
`CSI 4 : [1-5] m` escape sequence.
Diffstat (limited to 'alacritty_terminal/src/term/mod.rs')
-rw-r--r-- | alacritty_terminal/src/term/mod.rs | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/alacritty_terminal/src/term/mod.rs b/alacritty_terminal/src/term/mod.rs index 4d30602b..5ad1b4ad 100644 --- a/alacritty_terminal/src/term/mod.rs +++ b/alacritty_terminal/src/term/mod.rs @@ -1850,6 +1850,14 @@ impl<T: EventListener> Handler for Term<T> { cursor.template.flags.remove(Flags::ALL_UNDERLINES); cursor.template.flags.insert(Flags::UNDERCURL); }, + Attr::DottedUnderline => { + cursor.template.flags.remove(Flags::ALL_UNDERLINES); + cursor.template.flags.insert(Flags::DOTTED_UNDERLINE); + }, + Attr::DashedUnderline => { + cursor.template.flags.remove(Flags::ALL_UNDERLINES); + cursor.template.flags.insert(Flags::DASHED_UNDERLINE); + }, Attr::CancelUnderline => cursor.template.flags.remove(Flags::ALL_UNDERLINES), Attr::Hidden => cursor.template.flags.insert(Flags::HIDDEN), Attr::CancelHidden => cursor.template.flags.remove(Flags::HIDDEN), |