walles / moar

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

fish: command help warns about unrecognized ANSI #23

Closed charego closed 4 years ago

charego commented 4 years ago

Fish shell builtin commands come with a --help option. In many cases, moar handles the output fine. In some cases, it warns about "unrecognized ANSI". Is this an issue with moar or the output itself?

> fish --version
fish, version 3.1.0

> functions --help     # works fine?
> type --help          # works fine?
> set --help           # displays warnings

Press q immediately to close the pager.

Please post the following report at <https://github.com/walles/moar/issues>,
or e-mail it to johan.walles@gmail.com.

Version: 0.9.18
LANG   : en_US.UTF-8
TERM   : xterm-256color

GOOS    : darwin
GOARCH  : amd64
Compiler: gc
NumCPU  : 8

time="2020-03-24T20:07:12-05:00" level=warning msg="Unrecognized ANSI SGR code <24>"
time="2020-03-24T20:07:12-05:00" level=warning msg="Unrecognized ANSI SGR code <24>"
time="2020-03-24T20:07:12-05:00" level=warning msg="Unrecognized ANSI SGR code <24>"
time="2020-03-24T20:07:12-05:00" level=warning msg="Unrecognized ANSI SGR code <24>"
time="2020-03-24T20:07:12-05:00" level=warning msg="Unrecognized ANSI SGR code <24>"

Here's how most handles the output. It looks like there is something wrong with the output itself.

fish-functions-most fish-set-most
walles commented 4 years ago

Just released this fix as 0.9.19: https://github.com/walles/moar/releases/tag/0.9.19

Thanks for reporting @charego!