walles / moar

Moar is a pager. It's designed to just do the right thing without any configuration.
Other
587 stars 17 forks source link

error rendering output of tree #101

Closed nkh closed 1 year ago

nkh commented 1 year ago

$> tree | moar

spurious '??' are displayed among the tree lines

walles commented 1 year ago

moar expects its input to be UTF-8 encoded text.

Unprintable / invalid characters are rendered as ? (see below).

You have two options:

I will consider documenting this better before closing this issue.

https://github.com/walles/moar/blob/fdb520ce13c1c825e5465e35a3713d135e320df3/m/ansiTokenizer.go#L134-L153