diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2025-06-05 14:08:32 -0400 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2025-06-05 14:08:32 -0400 |
| commit | 1b9be16efacf9c3d9ca11844666034f072f5de98 (patch) | |
| tree | c94ef311108091d35ef93cbe2ba770cfaf435f62 /examples/colorful | |
| parent | 8fcf511e7ba576662863494453d9bedd2af039a3 (diff) | |
Add strikethrough
Diffstat (limited to 'examples/colorful')
| -rw-r--r-- | examples/colorful/colorful.tm | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/examples/colorful/colorful.tm b/examples/colorful/colorful.tm index 9a8bbbba..5b01cfd5 100644 --- a/examples/colorful/colorful.tm +++ b/examples/colorful/colorful.tm @@ -193,6 +193,8 @@ func _add_ansi_sequences(text:Text, prev_state:_TermState -> Text) new_state.italic = yes else if attr == "u" or attr == "underline" new_state.underline = yes + else if attr == "s" or attr == "strikethrough" + new_state.strikethrough = yes else if attr == "B" or attr == "blink" new_state.blink = yes else if attr == "r" or attr == "reverse" |
