man pages won't display hyphens
I've got an annoying little issue that's been bugging me for a while. The problem is that hyphens ("-") on my man pages are replaced with gibberish:
Code:
$ man dmesg |
What are you using to access the linux box? Are you at the consol, in a GUI, or using Telnet/SSH?
I use SSH and it is a font issue with SSH on my remote system. It can be changed, but the other fonts display other characters incorrectly, so I just deal with the bad hyphens. Enjoy. JN |
I get it too because I have locale set to something other than en_US. You can probably get around with
env LC_ALL=en_US man <whatever> if this works, you can set an alias in ~/.bashrc. Add the line alias man='env LC_ALL=en_US man' in the appropriate place. |
Quote:
|
Hmmm... bizarre side effect of this. It seems now vi won't accept a backspace or a delete character (which makes it very difficult to edit text files). Any ideas what the original "LC_ALL" setting might have been?
|
You could try using mcedit. Most distributions have it on their source cd.
Enjoy. JN PS That env=LC_ALL works great. I haven't had one problem yet, and I do most of my Linux Admin via OpenSSH (Putty to be exact). JN |
if you are using the env command, LC_ALL gets set only temporarily. You can fnd your default settings in either ~/.i18n, or if that does not exist in /etc/sysconfig/i18n.
|
Well this is just frustrating.... backspace and delete still do not work in VI. Tried all of the following to no avail:
Code:
$ env LC_ALL=en_US vi blah |
Don't know about the language problems, but for the backspace/delete problem, that is extremely common on *nix :) Check out this howto for an explanation and how to fix it. One quick-and-dirty fix is to type this as soon as you login:
stty erase (press backspace) That'll set the backspace code to be used for erasing, as you'd expect. You can also add this to a script that runs when you login... ~/.bashrc or ~/.bash_profile or some such. Not sure about the delete character, though. |
what if you just use
vi (no env before). Also, is it not en_US.UTF-8 rather than en_US:UTF-8 (. instead of :)? |
quatsh-
vi results in the same problem: no backspace and no del wapcaplet- Thanks for the link. I was able to atleast get backspace working again. DEL functions the same as backspace which I think means that I need to modify ~/.tcshrc per that HOWTO. Will get to that a little later... I've got to get some work done. :o |
All times are GMT -5. The time now is 03:29 AM. |