LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (http://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Cursor does not move to the bottom line and overwrite to same line on command line (http://www.linuxquestions.org/questions/linux-newbie-8/cursor-does-not-move-to-the-bottom-line-and-overwrite-to-same-line-on-command-line-931120/)

mesuutt 02-24-2012 05:02 PM

Cursor does not move to the bottom line and overwrite to same line on command line
 
1 Attachment(s)
Hi

I am connection to server via ssh from console.But usually when I write commands, cursor overwrite same line instead of move to bottom line.I am attaching an image.You can see problem from screenshot.
Attachment 9136


Thanks you in advance.

corp769 02-24-2012 05:30 PM

This may be because of how your prompt is configured. You are using bash, correct? Look in your normal bash config files located in both /etc and within your home directory, and see if your PS1 variable is moving it. You may have to back it up and delete just to tell if it is the problem or not.

mesuutt 02-25-2012 04:29 AM

Thanks @corp769 for reply. I have .bashrc at home directory but only contain an alias, PS1 variable in /etc/profile file. I changed my PS1 variable for colorizing. I am guessing my PS1 variable is '\u@\e[0;34m\h\e[0m:\$ '.Does colorize cause to problem?

Thanks

mesuutt 02-25-2012 08:04 AM

Ok. I solve problem. Solution of problem that use colorize tags in square brackets.For example;

I was using '\u@\e[0;34m\h\e[0m:\$ ' for PS1 and this is cause the problem.
Problem solved with change PS1 with '\u@\[\e[34;1m\]\h\[\e[m\]:\w\$ ' :)


All times are GMT -5. The time now is 06:13 AM.