LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch
User Name
Password
Linux From Scratch This 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


Reply
  Search this Thread
Old 12-04-2011, 05:59 AM   #1
spiky0011
Senior Member
 
Registered: Jan 2011
Location: PLANET-SPIKE
Distribution: /LFS/Debian
Posts: 2,511
Blog Entries: 1

Rep: Reputation: 412Reputation: 412Reputation: 412Reputation: 412Reputation: 412
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
 
Old 12-04-2011, 06:23 AM   #2
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405
Hi,

3 things come to mind:

- 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?

Hope this helps.
 
Old 12-04-2011, 06:48 AM   #3
spiky0011
Senior Member
 
Registered: Jan 2011
Location: PLANET-SPIKE
Distribution: /LFS/Debian
Posts: 2,511

Original Poster
Blog Entries: 1

Rep: Reputation: 412Reputation: 412Reputation: 412Reputation: 412Reputation: 412
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
 
Old 12-04-2011, 12:31 PM   #4
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405
Hi,

How about the other point I mentioned: The TERM setting?
 
Old 12-04-2011, 02:29 PM   #5
spiky0011
Senior Member
 
Registered: Jan 2011
Location: PLANET-SPIKE
Distribution: /LFS/Debian
Posts: 2,511

Original Poster
Blog Entries: 1

Rep: Reputation: 412Reputation: 412Reputation: 412Reputation: 412Reputation: 412
Hi
I dont get any output from that,
 
Old 12-04-2011, 03:01 PM   #6
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405
Hi,
Quote:
Originally Posted by spiky0011 View Post
Hi
I dont get any output from that,
Can you be a bit more specific about what you did?

Code:
from an xterm session in X:
$ echo $TERM
xterm

from a tty:
$ echo $TERM
linux
If I'm informed correctly your tty should take care of this setting, you can override it by setting it yourself:
Code:
$ export TERM=xyz
(have a look at your /etc/dircolors file for a list of termtypes)

If TERM is not set, try the export TERM=linux command and see if you still have the above mentioned issue.

Hope this helps.
 
Old 12-04-2011, 03:36 PM   #7
spiky0011
Senior Member
 
Registered: Jan 2011
Location: PLANET-SPIKE
Distribution: /LFS/Debian
Posts: 2,511

Original Poster
Blog Entries: 1

Rep: Reputation: 412Reputation: 412Reputation: 412Reputation: 412Reputation: 412
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
 
Old 12-05-2011, 07:22 AM   #8
Cedrik
Senior Member
 
Registered: Jul 2004
Distribution: Slackware
Posts: 2,140

Rep: Reputation: 244Reputation: 244Reputation: 244
Try change the prompt for testing just in case, like: `export PS1=$ '
 
Old 12-05-2011, 07:48 AM   #9
catkin
LQ 5k Club
 
Registered: Dec 2008
Location: Tamil Nadu, India
Distribution: Debian
Posts: 8,578
Blog Entries: 31

Rep: Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208
Try stty sane
 
Old 12-05-2011, 08:09 AM   #10
spiky0011
Senior Member
 
Registered: Jan 2011
Location: PLANET-SPIKE
Distribution: /LFS/Debian
Posts: 2,511

Original Poster
Blog Entries: 1

Rep: Reputation: 412Reputation: 412Reputation: 412Reputation: 412Reputation: 412
catkin can you explain pls
 
Old 12-05-2011, 08:21 AM   #11
Cedrik
Senior Member
 
Registered: Jul 2004
Distribution: Slackware
Posts: 2,140

Rep: Reputation: 244Reputation: 244Reputation: 244
Also, maybe check /etc/profile.d/readline.sh

http://www.linuxfromscratch.org/blfs...s/profile.html
 
Old 12-05-2011, 03:05 PM   #12
spiky0011
Senior Member
 
Registered: Jan 2011
Location: PLANET-SPIKE
Distribution: /LFS/Debian
Posts: 2,511

Original Poster
Blog Entries: 1

Rep: Reputation: 412Reputation: 412Reputation: 412Reputation: 412Reputation: 412
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
 
Old 12-05-2011, 05:04 PM   #13
Cedrik
Senior Member
 
Registered: Jul 2004
Distribution: Slackware
Posts: 2,140

Rep: Reputation: 244Reputation: 244Reputation: 244
My guess is weird PS1 value
 
Old 12-05-2011, 05:31 PM   #14
spiky0011
Senior Member
 
Registered: Jan 2011
Location: PLANET-SPIKE
Distribution: /LFS/Debian
Posts: 2,511

Original Poster
Blog Entries: 1

Rep: Reputation: 412Reputation: 412Reputation: 412Reputation: 412Reputation: 412
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.
 
Old 12-05-2011, 05:56 PM   #15
brainvision
Member
 
Registered: Mar 2009
Location: Bologna (BO)
Distribution: slackware-current
Posts: 50

Rep: Reputation: 1
Quote:
Originally Posted by spiky0011 View Post
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!!

What's that????
Thanks for help, if you can..
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
[SOLVED] (problem) Linux command line overwrites itself on long commands. venom4u31 Linux - Newbie 4 11-18-2011 01:41 PM
vsFTPd 1.2.1 re-typing commands ? bololinux Linux - Software 0 05-09-2007 08:49 AM
strange c++ typing/scoping/namespace problem thanhvn Programming 1 02-28-2007 03:18 AM
shortcut for typing long names karan101 Linux - Software 3 01-12-2005 03:54 PM
long pause after typing Startx & (Xfree86 4.3.0) bluester Linux - General 6 04-05-2003 09:14 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch

All times are GMT -5. The time now is 03:28 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