WordPress Info at sieker.info

ascii line drawing in PuTTY

I am using PuTTY as my ssh client (which is probably what most people use) and ascii line drawing has never worked. Today I have had enough of it and one search and 10 minutes later I found the solution.

The tip on this open suse page did the trick for me.
In the Settings under Window/Translation set “Recieved data assumed to be in which character set” to UTF-8 and make sure that the option “Handling of line drawing characters” is set to “Use Unicode line drawing code points”.
Obviously the Font that is configured under Window/Appearance “Font settings” needs to have the unicode line drawing characters.
I have tried it with the fonts Lucidia Console and Courier New which both work fine and are standard windows fonts.

7 Comments »

Awesome tip. However when I when I log into ubuntu and runt aptitude from a putty session it gives me nice line draw characters for the menu but strangely not for everything. The help menu still shows funky characters for the boarders. Quit menu prompts as well. But the Main Menus look nice with the line draw characters. Strange.

Thanks for the tip! Got me half way there.

Comment by dc — 15 March 2007 at 2:26

«Awesome tip» — You bet!

Today I just started searching for «Unicode Line Drawing Points» (in connection with PuTTy), and up pops this post. This is great! Hope some more info surfaces so that the rendering of (in this case) Aptitude’s console-GUI becomes perfect!

Sincerely,

Roger

Comment by Roger — 8 August 2007 at 18:00

sweet jesus, thank you.

Comment by hoarycripple — 8 August 2007 at 23:01

thanks!

Comment by name — 1 September 2007 at 14:38

If you want step by step instructions on how to fix this, have a look at the Putty and Midnight Commander article at andremiller.net

Comment by john — 9 January 2008 at 15:18

In response to the question from dc, you need to set your putty’s Terminal-Type value. Putty defaults to xterm. Change this to linux.

Open putty.exe and before you establish your connection, load the saved session to your ubuntu computer and on the tree-view on the left side, browse down to Connection->Data

Change the Terminal-type string from the default of xterm (or whatever you have in there, to something like linux.

This should make your aptitude look very pretty.

-JimEl
P.S. - Responded because this is the first return from google while searching for: putty aptitude

Comment by JimEl — 24 April 2008 at 5:42

Man, this has driven me nuts for years (I run screen under linux and always assumed it was that). Thanks!

Comment by Darren Platt — 18 August 2008 at 0:13

Leave a comment

Line and paragraph breaks automatic, e-mail address never displayed, HTML allowed: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <code> <em> <i> <strike> <strong>

(required)

(required)