Many non alpha-numeric characters appear as jumbled mess when using less
and man
.
Currently, I'm using zsh
but the same problem happens in bash
and sh
.
The problem also appears in both the st
and termite
terminal emulators.
man grep
produces:
How can i fix this?
env -i TERM=$TERM PATH=/usr/bin:/bin HOME=/none man grep
renders correctly.
xterm
as well. – jeohd Nov 11 '20 at 00:31less -R
works, addexport LESS=-R
to your~/.bashrc
. Readman less
. – waltinator Nov 11 '20 at 00:48man-db
implementation ofman
should already set$LESS
to something like-ix8RmPm
. Also, these days, those escape sequences tend not to be used by default (you'd need to set theGROFF_SGR
env var), so there's something unusual in the OP's environment. See also Grep: unexpected results when searching for words in heading from man page – Stéphane Chazelas Nov 11 '20 at 07:52man
orless
works? Doesenv -i TERM=$TERM PATH=/usr/bin:/bin HOME=/none man grep
show the man page correctly, with or without formatting, in less or something else? – Gilles 'SO- stop being evil' Nov 11 '20 at 09:04env -i TERM=$TERM PATH=/usr/bin:/bin HOME=/none man grep
renders correctly. See answer. – jeohd Nov 12 '20 at 03:48