From f97e50fe2c50188f4e714c3bbfc93d1b468e0ab0 Mon Sep 17 00:00:00 2001 From: Johan Walles Date: Mon, 8 Jul 2019 08:58:53 +0200 Subject: [PATCH] Add two comments --- install.sh | 5 ++++- m/ansiTokenizer.go | 12 ++++++++++++ 2 files changed, 16 insertions(+), 1 deletion(-) diff --git a/install.sh b/install.sh index f880772..e0a8314 100755 --- a/install.sh +++ b/install.sh @@ -6,5 +6,8 @@ set -e -o pipefail echo -set -x +echo 'Installing into /usr/local/bin...' cp moar /usr/local/bin/moar + +echo +echo 'Installed, try "moar moar.go" to see moar in action!' diff --git a/m/ansiTokenizer.go b/m/ansiTokenizer.go index 83f4a16..a7f89a6 100644 --- a/m/ansiTokenizer.go +++ b/m/ansiTokenizer.go @@ -89,6 +89,18 @@ func _TokensFromStyledString(styledString _StyledString) []Token { } } + // FIXME: Man page formatting fails, if I do (in bash)... + // "man printf|hexdump -C|grep -10 leading| grep --color 08" + // ... I get... + // "000003e0 20 20 20 20 20 20 20 20 2b 08 2b 08 6f 08 6f 20 | +.+.o.o |" + // ... wich "less" renders as a bold "o". We should as well. + // + // I don't get the logic though, the sequence is: + // plus-backspace-plus-backspace-o-backspace-o + // + // Maybe the interpretation should be: + // "Make a bold +, then erase that and replace it with a bold o"? + if replacement != nil { tokens = append(tokens[0:len(tokens)-2], *replacement)