From 1b9be16efacf9c3d9ca11844666034f072f5de98 Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Thu, 5 Jun 2025 14:08:32 -0400 Subject: Add strikethrough --- examples/colorful/colorful.tm | 2 ++ 1 file changed, 2 insertions(+) (limited to 'examples') 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" -- cgit v1.2.3