So this has been bugging me for a few years now and I can always "fix" the problem, but I don't know if that's actually the correct way. So the issue is terminal emulation. I use Secure CRT (vandyke.com) to connect to any and all of my servers through SSH. Whether the terminal is set to 'linux' or 'xterm' makes no difference, I always get this output when I run a 'tree' command (and others that have some sort of graphical output): [13] 05:04:53 <root at brasco:~> tree rpmbuild/ rpmbuild/ ???????? BUILD ???? ? ????????? ncftp-3.2.5 ???? ? ???????? autoconf_local ???? ? ???? ? ???????? acconfig.h ???? ? ???? ? ???????? aclocal.m4 ???? ? ???? ? ????????? aclocal.m4.ncursesw ???? ? ???????? bin ???? ? ???? ? ???????? ncftp ???? ? ???? ? ???????? ncftpbatch ???? ? ???? ? ???????? ncftpbookmarks ???? ? ???? ? ???????? ncftpget ???? ? ???? ? ???????? ncftpls ???? ? ???? ? ???????? ncftpput ???? ? ???? ? ????????? ncftpspooler -> ncftpbatc Now, the way I fix that is by changing the LANG setting. By default it's set to 'en_US.UTF-8' right after a fresh install. If I change that to simply 'en_US', then I get the output I'm expecting: [16] 05:06:14 <root at brasco:~> tree rpmbuild/ rpmbuild/ |-- BUILD | `-- ncftp-3.2.5 | |-- autoconf_local | | |-- acconfig.h | | |-- aclocal.m4 | | `-- aclocal.m4.ncursesw | |-- bin | | |-- ncftp | | |-- ncftpbatch | | |-- ncftpbookmarks | | |-- ncftpget | | |-- ncftpls | | |-- ncftpput | | `-- ncftpspooler -> ncftpbatch ... So my question is: why is that? Why would the default setting not work? Is it actually something that I need to be doing on the server (like changing the LANG setting), or is it with SecureCRT? And if so, can anyone give me any suggestions of what I need to be looking for and change? Like I said, it's been a couple of years and it's never a big deal since I know what to do to sort of fix the problem. Thanks.
On 5/1/2014 11:07 AM, Ashley M. Kirchner wrote:> So my question is: why is that? Why would the default setting not work? Is > it actually something that I need to be doing on the server (like changing > the LANG setting), or is it with SecureCRT? And if so, can anyone give me > any suggestions of what I need to be looking for and change?you need to configure SecureCRT to do UTF, its probably using a ISO8559 type 8 bit encoding. this combination of settings works for me... on the terminal->emulation, set Terminal to either Linux or Xterm, and uncheck alternate keyboard emulation. on the terminal->appearance, set a font that has unicode, like Lucida Console, or Consolas. do NOT use the vt100 family fonts. now log out, and log back into the target system, and I bet 'tree' works. re: those who say to use putty, while putty is free, SecureCRT has a lot of worthwhile features, I've been using it for years. -- john r pierce 37N 122W somewhere on the middle of the left coast