A strange Problem when typing long commands in tty
Linux From ScratchThis Forum is for the discussion of LFS.
LFS is a project that provides you with the steps necessary to build your own custom Linux system.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
A strange Problem when typing long commands in tty
Hi
When I put a long command in (using tty) the type dosn't go to the next line,
It writes over the PROMPT at beginning of the same line???.
I have tried using the \ so as to move down a line but command fails, as not a complete command.
Any thoughts
- What terminal are you using (is TERM set correctly: export TERM=linux for tty)
- Do you use a fancy prompt (PS1)?
- Anything odd in your /etc/inputrc or .inputrc file?
Nothing special set for PS1 "spiky@Planet-spike:etc$" Thats it, /etc/inputrc is the same as the book
The other thing I noticed was if I use WGET then paste the link it seems to loose
some of the copied link, then WGET fails. The only other thing is resolutions set to high.
But I would think that it should still work what ever the resolution is
Ok I have rebuilt the kernel and set modesetting for intel (Think that is what it said) I now have a much better resolution, although I can get more
on the line, It still wont drop down to next line to carry on the command, it just starts back at same line writing over
the prompt. So It,s not a case of resolutions
Ok I have an update as Root the tty seems to behave ok but as user the problems persist, I have checked the readline.sh
it is as per book.
Ok I have some more info I have created a new user Without any home so no personal .bashrc or .bash_Profile etc It seems
to behave as well, so it,s something to do with .bashrc .bash_profile in home dir.
Last edited by spiky0011; 12-05-2011 at 04:05 PM.
Reason: Added more info
ok I have tried export PS1=$ and it seems to work although I get the command on 1 line now,
My PS1 export PS1='\e[1;32m\u@\h:\[\e[1;31m\W$\e[m ' which I dont think is that bad. This is my personal .bashrc.
ok I have tried export PS1=$ and it seems to work although I get the command on 1 line now,
My PS1 export PS1='\e[1;32m\u@\h:\[\e[1;31m\W$\e[m ' which I dont think is that bad. This is my personal .bashrc.
hi, I tried your prompt customization and I like it, but I have an issue: when i launch the terminal, the cursor is shown on the middle of the prompt, and starting to write a command also starts from there!! only printing the output of a command (for example ls, let's say) the cursor turn back to his normal position.. but again, if I hit enter without writing a command, the cursors come back to the middle of the prompt!!
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.