View previous topic :: View next topic |
Author |
Message |
Shingoshi Tux's lil' helper
Joined: 18 Jan 2007 Posts: 128 Location: Salem, Oregon USA
|
Posted: Thu Apr 10, 2008 9:04 pm Post subject: Would someone please tell me why manpages look like this... |
|
|
I've searched Google, and can't seem to find the exact search phrases to find a solution for this. I'm getting all kinds of crazy characters in my manpages, and didn't see this before. Also, my manpages are being displayed with info, not man. I know (suspect) that I need to change something in man.conf, I just don't know what. And please don't tell me to read the manpages, they're too corrupt to read without difficulty.
Sometime ago, some package said something about changing the *groff settings. I don't remember which package, nor which setting. But shortly after that, I started noticing this problem.
Every line begins with; ^[[1m
This is typically followed with variations of either; ^[[22m or ^[[24m
This is what I get from locale;
LANG=en_US
LC_CTYPE="en_US"
LC_NUMERIC="en_US"
LC_TIME="en_US"
LC_COLLATE=C
LC_MONETARY="en_US"
LC_MESSAGES="en_US"
LC_PAPER="en_US"
LC_NAME="en_US"
LC_ADDRESS="en_US"
LC_TELEPHONE="en_US"
LC_MEASUREMENT="en_US"
LC_IDENTIFICATION="en_US"
LC_ALL=
I would like this to be: LANG="en_US.UTF8"
Is this the proper command to change this? localedef -i en_US -f UTF-8 en_US.UTF-8
I don't want to run the above command, while I'm still uncertain.
And even if I do get rid of the funny character issue, why is info displaying man pages? What if any benefit is there to this? Or is this part of the problem?
Thank you for your assistance!
Shingoshi _________________ The immediate equalization of all knowledge among all beings.
Xneutato - The Cluster-Distributed Package Development and Management Framework
http://portato.origo.ethz.ch/forum/23
Shingoshi's User Styles for Firefox
http://userstyles.org/users/3665 |
|
Back to top |
|
|
eccerr0r Watchman
Joined: 01 Jul 2004 Posts: 9691 Location: almost Mile High in the USA
|
Posted: Thu Apr 10, 2008 11:44 pm Post subject: |
|
|
The ^[[1m are ANSI escape sequences, and specifically the 'start bold' sequence.
However, this is weird: Usually nroff should emit backspace character to bold, and not use escape sequences. And the next thing is that 'less' (what pager are you using?) normally gives up on all escape sequences.
Might want to check your /etc/man.conf to make sure
Code: | NROFF /usr/bin/nroff -Tascii -c -mandoc |
is in that file? _________________ Intel Core i7 2700K/Radeon R7 250/24GB DDR3/256GB SSD
What am I supposed watching? |
|
Back to top |
|
|
Shingoshi Tux's lil' helper
Joined: 18 Jan 2007 Posts: 128 Location: Salem, Oregon USA
|
Posted: Fri Apr 11, 2008 1:30 am Post subject: Solved!!! |
|
|
eccerr0r wrote: | The ^[[1m are ANSI escape sequences, and specifically the 'start bold' sequence.
However, this is weird: Usually nroff should emit backspace character to bold, and not use escape sequences. And the next thing is that 'less' (what pager are you using?) normally gives up on all escape sequences.
Might want to check your /etc/man.conf to make sure
Code: | NROFF /usr/bin/nroff -Tascii -c -mandoc |
is in that file? |
Thank you for responding. I just checked, and found that I didn't have the "-Tascii". So I have set it now and will test for result.
Oh I could so kiss you!!! Needless to say from that remark, IT WORKED!!
Thank you so much!!!
Shingoshi
Ok, so should the info program be reading manpages?
I have: PAGER /usr/bin/less -is _________________ The immediate equalization of all knowledge among all beings.
Xneutato - The Cluster-Distributed Package Development and Management Framework
http://portato.origo.ethz.ch/forum/23
Shingoshi's User Styles for Firefox
http://userstyles.org/users/3665 |
|
Back to top |
|
|
eccerr0r Watchman
Joined: 01 Jul 2004 Posts: 9691 Location: almost Mile High in the USA
|
Posted: Fri Apr 11, 2008 2:28 pm Post subject: |
|
|
No, I was just trying to cover all the bases and making sure everything falls into place. Normally 'less' is used indeed, and the default behavior for 'less' is to just show escape sequences instead of displaying ANSI.
Glad you got it working! _________________ Intel Core i7 2700K/Radeon R7 250/24GB DDR3/256GB SSD
What am I supposed watching? |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|