LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 02-24-2012, 05:02 PM   #1
mesuutt
Member
 
Registered: Jan 2011
Location: İstanbul
Distribution: Slackware,Debian
Posts: 62

Rep: Reputation: 1
Question Cursor does not move to the bottom line and overwrite to same line on command line


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.
Click image for larger version

Name:	image.jpg
Views:	61
Size:	42.7 KB
ID:	9136


Thanks you in advance.
 
Old 02-24-2012, 05:30 PM   #2
corp769
LQ Guru
 
Registered: Apr 2005
Location: /dev/null
Posts: 5,818

Rep: Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007
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.
 
Old 02-25-2012, 04:29 AM   #3
mesuutt
Member
 
Registered: Jan 2011
Location: İstanbul
Distribution: Slackware,Debian
Posts: 62

Original Poster
Rep: Reputation: 1
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

Last edited by mesuutt; 02-25-2012 at 08:04 AM.
 
Old 02-25-2012, 08:04 AM   #4
mesuutt
Member
 
Registered: Jan 2011
Location: İstanbul
Distribution: Slackware,Debian
Posts: 62

Original Poster
Rep: Reputation: 1
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\$ '
 
  


Reply

Tags
command line



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Print all PID folders from /proc line-by-line with this format (( PID: command-line )) courteous Linux - Newbie 7 12-12-2010 04:47 PM
[SOLVED] Vi editor How to move cursor to a specified line number. gardenair Linux - Newbie 4 12-07-2010 12:40 AM
awk command line: blank line record sep, new line field sep robertmarkbram Programming 4 02-21-2010 05:25 AM
Ubuntu8.0.4- Lost top line and bottom line on desktop-No app guide- No work spc boxes pizzipie Linux - Newbie 1 12-24-2008 08:01 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 07:10 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration