From b4af8f47c8a8b0882f8b0f5bdced0e0fdecd3dfa Mon Sep 17 00:00:00 2001 From: Ching Pei Yang <59727193+horriblename@users.noreply.github.com> Date: Sun, 22 Oct 2023 20:33:19 +0200 Subject: [PATCH] doc: Add comments about sixel filler (#1443) --- sixel.go | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/sixel.go b/sixel.go index 326187fa..0a300052 100644 --- a/sixel.go +++ b/sixel.go @@ -8,7 +8,14 @@ import ( ) const ( - gSixelBegin = "\033P" + gSixelBegin = "\033P" + + // The filler character should be: + // - rarely used: the filler is used to trick tcell into redrawing, if the + // filler character appears in the user's preview, that cell might not + // be cleaned up properly + // - ideally renders as empty space: the filler alternates between bold + // and regular, using a non-space would look weird to the user. gSixelFiller = '\u2000' )