ESCape codes displayed instead of processed in pager

Matt Thyer matt.thyer at gmail.com
Sat Mar 31 02:02:30 UTC 2012


On Mar 31, 2012 5:02 AM, "Jim Bryant" <kc5vdj.freebsd<kc5vdj.freebsd at gmail.com>
@ <kc5vdj.freebsd at gmail.com>gmail.com <kc5vdj.freebsd at gmail.com>> wrote:
>
> Matt Thyer wrote:
>
>>
>> On Mar 29, 2012 5:18 AM, "Jim Bryant" <kc5vdj.freebsd<kc5vdj.freebsd at gmail.com>
@ <kc5vdj.freebsd at gmail.com>gmail.com <kc5vdj.freebsd at gmail.com> <mailto:
kc5vdj.freebsd <kc5vdj.freebsd at gmail.com>@ <kc5vdj.freebsd at gmail.com>
gmail.com <kc5vdj.freebsd at gmail.com>>> wrote:
>> >
>> > Ever since I have upgraded to 9-stable, I have noticed that the
manpages seem to be munged up with displayed instead of processed ESCape
codes.
>>
>> I believe that this is due to the terminal type of the console changing
from "cons25" to "xterm".  If you fix your /etc/ttys to reflect this things
should be OK.
>>
> 1:27:57pm  argus(19): tty
> /dev/pts/7
> 1:28:03pm  argus(20): setenv TERM xterm
> 1:28:05pm  argus(21): man man
>
> MAN(1)                  FreeBSD General Commands Manual
MAN(1)
>
> ESC[1mNAMEESC[0m
>    ESC[1mman ESC[22m-- display online manual documentation pages
>
> same thing going on.  that's after switching every vty and the console to
xterm in /etc/ttys as well.
>
> i'm kinda lost on this one.  i have determined that somehow, it's the
pager...  hang on a sec... lemme try vi.
>
> vi seems to be working properly...  it's not the termcap/terminfo...  the
only thing causing this seems to be more and less, both.
>
> when i pipe man into cat, everything gets properly interpreted by the
tty/vty/pty, when i use the pager, i get this crap....argh..
>
Some suggestions:

Test with a clean environment (most easily done by creating a new user
account).

If that doesn't fix it then you have a problem with your upgrade that may
be fixed by mergemaster.

You may need to back up your data and do a clean install.


More information about the freebsd-stable mailing list