1
1
mirror of https://github.com/walles/moar.git synced 2024-11-22 03:14:56 +03:00

Add two comments

This commit is contained in:
Johan Walles 2019-07-08 08:58:53 +02:00
parent 31ae7927c7
commit f97e50fe2c
2 changed files with 16 additions and 1 deletions

View File

@ -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!'

View File

@ -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)