about summary refs log tree commit diff stats
path: root/src/render
diff options
context:
space:
mode:
authorbptato <nincsnevem662@gmail.com>2022-02-12 13:11:38 +0100
committerbptato <nincsnevem662@gmail.com>2022-02-12 13:11:44 +0100
commit051d22b17e4c270f925376824a2307ab65ef5aa5 (patch)
tree34245c30f6a7569a0bb7cba76ed24e8a3243f338 /src/render
parent233688e5c7c8f35366a02673e04dad2e527897e1 (diff)
downloadchawan-051d22b17e4c270f925376824a2307ab65ef5aa5.tar.gz
Implement blink tag
with text-decoration: blink.
Diffstat (limited to 'src/render')
-rw-r--r--src/render/renderdocument.nim2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/render/renderdocument.nim b/src/render/renderdocument.nim
index 2d4dac82..ce353168 100644
--- a/src/render/renderdocument.nim
+++ b/src/render/renderdocument.nim
@@ -23,6 +23,8 @@ func formatFromWord(computed: ComputedFormat): Format =
     result.overline = true
   if computed.textdecoration == TEXT_DECORATION_LINE_THROUGH:
     result.strike = true
+  if computed.textdecoration == TEXT_DECORATION_BLINK:
+    result.blink = true
 
 proc setRowWord(lines: var FlexibleGrid, word: InlineWord, x, y: int, term: TermAttributes) =
   var r: Rune