trouble with the way man pages are displayed
i'm having an issue with the way my man pages are displaying from my xterm... they seem to display fine from a console (runlevel 3), but when i'm in X11, and i look at a man page from my xterm, they display in an awkward manner... for example, here's a snippet of what a "man diff" looks like:
Code:
DIFF(1) User Commands DIFF(1) i'm sure i messed something up somewhere but i can't figure-out what, and i'm not exactly sure where to look... so far i've recompiled man, groff, and x11 with no luck... any guidance you could give me with this issue would be most appreciated... thanks in advance... |
Does this happen in any other terminal emulators such as aterm, rxvt, konsole or gnome-terminal?
|
i just tried with xfterm4 and yeah, it happens there also... :(
|
I'd suggest removepkg man groff and installpkg'ing those again from Pat's vanilla packages. Something could of gotten screwy. Have you updated anything big lately? Does this happen in all man pages or just a select few?
|
okay, i might test with patrick's packages in a minute...
meanwhile, i'm am starting to suspect that libtermcap might have something to do with this... any thoughts on that?? i uninstalled it a few days ago during a cleanup... so right now i installed libtermcap again and i recompiled groff and man but still no luck... however, if the problem is with the terminals themselves (and not groff/man) then perhaps i need to recompile X11 (xterm) in order for it to work?? hmmm, well, i'm gonna do some googling before i recompile X11 again cuz on my box it takes about an hour and 15 minutes to compile X11... hehe... in response to your questions: yeah, i've updated lots of stuff during the past weeks, but i can't remember exactly when the man pages started getting messed-up... and yeah, it seems to happen to all man pages... here's some more snippets for your enjoyment :) : Code:
NAME Code:
NAME Code:
NAME |
okay, well, i was thinking bash itself might have something to do with it... so after installing libtermcap i went ahead and recompiled bash to see if it made any difference... the man page problem still happens, but i can see that, at least, bash enjoyed the libtermcap install:
Code:
bash-3.1$ ldd /bin/bash |
Some greps in /var/log/packages/ shows that libtermcap.so.2 is actually installed in the aaa_elflibs package. I don't know libtermcap well enough, so maybe this is normal but even after I removepkg libtermcap I was able to view man pages and run bash without a hitch. So I don't believe libtermcap is the problem. I still think it has something to do with groff and/or man (maybe even less for all I know). I'm still sticking to my suggestion of removing man and groff and just installing them again. You shouldn't have to recompile X. If it was only happening in xterm then I'd suggest it but if the problem is terminal emulator neutral then it's something with the programs they're calling. Just my two cents, good luck.
UPDATE: Just read your edit, so nevermind about my suggestion. I'll keep poking around google but I don't have a clue anymore. |
yeah, recompiling X11 didn't help... i also recompiled XFCE just in case... nothing... well, i'm wasted for today... i'll keep at it tomorrow though... i'll keep you posted... if you think of anything please do post... once again, thanks for all your help...
|
What is TERM variable set to?
echo $TERM Try changing it, e.g. if it is set to xterm then change it to linux or visa-versa. <edit> You can also try turning on or off the auto-margin by adding -am or -nam to the $TERM variable for auto-margin or no-auto-margin respectivly. http://www.linuxmanpages.com/man7/term.7.php |
Quote:
if i do a Code:
TERM=linux if i then go back to what i had (xterm) with a: Code:
TERM=xterm so now i'm reading the link you posted in an effort to understand what might have caused this change on my system in the first place, and of course how to change it back permanently and stuff... thanks a million!!! |
when you guys open an xterm and do a:
Code:
echo $TERM after a fresh boot, i get "linux" when i do it at a console (runlevel 3) but i get "xterm" when i do it from my xterm in X11 (runlevel 4)... |
been tryin' to figure-out how to change the value of $TERM to "linux" for X11 sessions on a system-wide level but no luck... i'd like to make it so that it gets set for all users... could you show me how to do this?? which file must i edit?? :confused:
|
well i think i found out how to change $TERM to "linux" for all X11 sessions... i did it by opening the /usr/X11/bin/startx file and changing this:
Code:
clientargs="" Code:
clientargs="-tn linux" Quote:
so i guess this kinda thing isn't set for the entire X11 session... i can always start an xterm within X11 by using "xterm -tn linux" and then it works fine, though... i just thought it would be more kosher to make it so that whenever a user executes "xterm" they will have that term open with a $TERM value of "linux" so that everything displays properly (specially man pages)... |
That's strange. I have TERM set as xterm and everything works normally in xterm (man pages too). Just tried for curiosity.
|
okay, i came-up with a cheap/stupid work-around...
basically, i created a shell script ( /usr/bin/xterm ) which contains the following: Code:
#!/bin/bash |
Quote:
PS: this couldn't have anything to do with libreadline, right?? just wondering... |
Ok, just removed readline. No difference. Should I reboot? It is working normally after unset TERM.
The only error: terminal is not working functionally but man pages are correct. And the strangest thing that it only affects Gnome terminal not xterm. |
ah wow, Environment variables.. completely slipped my mind.
Glad you got it to work man, keep us updated if you ever find out how you got it to not display properly in the first place. |
Quote:
Quote:
|
Quote:
|
I'm using readline from current without recompile.
|
Quote:
cuz i'm on a 10.2, but i've recompiled the hell out of this thing so a lot of my versions are equal to what's in -current even though i haven't downloaded any binaries from -current... |
Most packages are from current except the most vital ones like aaa_base, aaa_elflibs, alsa, kernel headers and X (it's from dropline because it gives me more fps than the Slackware ones).
|
Just rebooted. Readline does not affect anything (everything works normally), unsetting TERM gives only warning. Your problem is not here.
|
checked to see if anything is wrong with the termcap?
|
Quote:
Quote:
|
i'm not positive on the correct way to debug it,
but this is the stock slack xterm settings in termcap. Code:
# Entry for an xterm. Insert mode has been disabled. you can also use `infocmp` to determine the settings from terminfo. also, if man is the only command effected...maybe something in man.conf? i did see some results similar to this behaviour in searches from users who had switched their encoding or such. other interesting reads: /usr/doc/Linux-HOWTOs/Keyboard-and-Console-HOWTO /usr/doc/Linux-HOWTOs/Text-Terminal-HOWTO |
You should be able to set the $TERM variable in /etc/profile file.
|
Quote:
i don't trust my install anymore (not just for the reason posted on this thread), i really did put it through hell with all my upgrades and recompiles of everything in sight... so as soon as i have a window of opportunity i will be doing a re-install of slack 10.2... after i install all the official patches, i will proceed to be much more conservative when it comes to upgrading my stuff... i look forward to having a stable install as i had before i was infected by the upgrading/recompiling madness... :) |
All times are GMT -5. The time now is 08:01 PM. |