diff options
author | Eatgrass <eatgrass@live.cn> | 2023-11-05 08:30:35 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-11-05 15:30:35 +0100 |
commit | 7f87d93a430a47c82ce3f177a6a2609d3f6abade (patch) | |
tree | 677e43c0c0613ef2e20377295c5e2212833c028f /zellij-utils/src/kdl | |
parent | 3942000e868ce62b23414ced3bd980d30e0d84b0 (diff) |
feat(terminal): support styled underlines (#2730)
* feat: support styled underlines
* remove deadcode
* Add ansi_underlines config option
* Add missing variables
* Add ansi_underlines on Output and OutputBuffer
* Fix tests
* Add separate styled underline enum
* Remove ansi_underlines from fg and bg
* Remove unneeded variables
* Rename ansi_underlines -> styled_underlines
* Simplify CharacterStyles::new()
* Move styled_underlines config description
* Fix single underline and remove extra field on CharacterStyles
* Read styled-underlines flag from cli opts
* remove extra attribute left from merge conflict
---------
Co-authored-by: Mike Lloyd <mike.lloyd03@pm.me>
Co-authored-by: Mike Lloyd <49411532+mike-lloyd03@users.noreply.github.com>
Co-authored-by: Aram Drevekenin <aram@poor.dev>
Diffstat (limited to 'zellij-utils/src/kdl')
-rw-r--r-- | zellij-utils/src/kdl/mod.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/zellij-utils/src/kdl/mod.rs b/zellij-utils/src/kdl/mod.rs index dc99bc66d..0c32bfacb 100644 --- a/zellij-utils/src/kdl/mod.rs +++ b/zellij-utils/src/kdl/mod.rs @@ -1438,6 +1438,9 @@ impl Options { let scrollback_lines_to_serialize = kdl_property_first_arg_as_i64_or_error!(kdl_options, "scrollback_lines_to_serialize") .map(|(v, _)| v as usize); + let styled_underlines = + kdl_property_first_arg_as_bool_or_error!(kdl_options, "styled_underlines") + .map(|(v, _)| v); Ok(Options { simplified_ui, theme, @@ -1462,6 +1465,7 @@ impl Options { session_serialization, serialize_pane_viewport, scrollback_lines_to_serialize, + styled_underlines, }) } } |