LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   putty is not converting "\n" to a new line??? how can I fix this??? (https://www.linuxquestions.org/questions/linux-newbie-8/putty-is-not-converting-%5Cn-to-a-new-line-how-can-i-fix-this-698456/)

callagga 01-19-2009 05:26 PM

putty is not converting "\n" to a new line??? how can I fix this???
 
Hi,

I'm using Putty to remote in. What's really annoying is that it is showing "\n" in the response text instead of rendering this as a new line.

How could I fix this?

Is this a Putty configuration issue (can't quite see the setting), or something on my server end?

thanks in advance

onebuck 01-19-2009 07:10 PM

Hi,

Look at the Putty Configuration by clicking on the terminals at the upper left corner select change settings. You can then change the terminal setting to suit.

callagga 01-19-2009 07:29 PM

Quote:

Originally Posted by onebuck (Post 3414459)
Look at the Putty Configuration by clicking on the terminals at the upper left corner select change settings. You can then change the terminal setting to suit.

The problem I have is I've had a look at the configuration settings and it's not obvious to me what I need to change.

Anyone know which settings to use?

I see there is a "character set transaction" drop down, and it has heaps of entries to choose from. I've tried a few (e.g. UTF-8) but still no luck. Same of what I'm seeing:

..............................
?> Category.find(:all).to_yaml
=> "--- \n- !ruby/object:Category \n attributes: \n updated_at: 2009-01-19 05:47:55\n tax_item_id: \n category_type_id: \"2\"\n title: Investment\n id: \"1\"\n category_id: \n category_group_id: \"5\"\n created_at: 2009-01-19 05:47:55\n active: \"0\"\n attributes_cache: {}\n\n- !ruby/object:Category \n attributes: \n updated_at: 2009-01-19 05:47:55\n tax_item_id: \n category_type_id: \"2\"\n title: Entertainment\n id: \"2\"\n category_id: \n category_group_id: \"3\"\n created_at: 2009-01-19 05:47:55\n active <CUT>
..............................

onebuck 01-20-2009 03:28 PM

Hi,

Do you have the 'Auto wrap mode initially on' in the terminal settings of the Change settings? The 'Terminal Settings' are the options that control the terminal emulation.

callagga 01-20-2009 06:03 PM

thanks

I think in fact :( that the command I was using in fact really does spit out \n as a character not a line feed, so putty was doing the right thing. Doh.


All times are GMT -5. The time now is 08:41 PM.