LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (http://www.linuxquestions.org/questions/slackware-14/)
-   -   Linedraw font display when ssh into remote (http://www.linuxquestions.org/questions/slackware-14/linedraw-font-display-when-ssh-into-remote-4175431365/)

Ook 10-09-2012 02:35 PM

Linedraw font display when ssh into remote
 
I use ssh to connect to a remote host. Once I get there I run the midnight commander. When it runs, each of the linedraw charactors appear as little squares with what appears to be the hex code of the characters. When I ssh into other hosts I don't have this problem, so I'm guessing it's this particular host. But what controls this? When I ssh into a host, what controls the font that I see?

guanx 10-09-2012 02:53 PM

The "TERM" environment variable and your terminal emulator has control over what you see.
If you cannot figure out the correct combination, then use "mc -a".

Ook 10-09-2012 03:54 PM

Quote:

Originally Posted by guanx (Post 4801498)
The "TERM" environment variable and your terminal emulator has control over what you see.
If you cannot figure out the correct combination, then use "mc -a".

$TERM is set to xterm on the host, but on my local machine it is set that way also, as it is on other hosts, and on other hosts with TERM set to xterm, it works fine. If I use terminal or xterm it does the same thing. I use putty to connect it doesn't display the lines correctly unless I change the remote character set to UTF-8. I seem to be missing something here...

Edit: In rxvt it does the same thing. And it is only this one remote - all the other boxes I ssh into will display mc lines just fine.

Ook 10-23-2012 04:22 PM

Continuing this topic - on the box that does not work, $LANG is set to en_US.UTF-8. If I change it to en_US, then linedraw works as expected.


All times are GMT -5. The time now is 10:52 AM.