You are not logged in.

#1 2009-08-16 13:39:16

some-guy94
Member
Registered: 2009-08-15
Posts: 360

Bash problems

If I open a terminal(in gnome) or a tty, then once I type enough text it will go back and overwrite the beginning of the line rather than go to a new one.
Supposed to be:

someone@somewhere $ multiple line text takes up a lot of
space

What happens:

spacene@somewhere $ multiple line text takes up a lot of

Screenshot:
screenshotsomeguyarchde.png

Another seemingly related problem is that sometimes when I open a terminal and (possibly) run a command, I'll get logged out.

Thanks for any help

Offline

#2 2009-08-16 13:55:04

hbekel
Member
Registered: 2008-10-04
Posts: 311

Re: Bash problems

My best bet is that you forgot to enclose non-printing characters in your PS1 in \[ and \], which causes readline to misinterpret the length of your prompt string.

See bash(1) PROMPTING

"Another seemingly related problem is that sometimes when I open a terminal and (possibly) run a command, I'll get logged out."

Can you describe this in more detail?

Offline

#3 2009-08-16 14:32:59

majiq
Member
Registered: 2009-03-06
Posts: 259

Re: Bash problems

This is a known problem, and actually rather common. For example: http://www.nabble.com/Bug:-terminal-wid … 48384.html . Just change that one option and it should get fixed.

Offline

#4 2009-08-16 15:05:38

some-guy94
Member
Registered: 2009-08-15
Posts: 360

Re: Bash problems

hbekel wrote:

My best bet is that you forgot to enclose non-printing characters in your PS1 in \[ and \], which causes readline to misinterpret the length of your prompt string.

Thanks, that fixed it.

hbekel wrote:

Can you describe this in more detail?

Sometimes, I'll just have firefox open, and open a terminal, type half a command, and I'll get logged out hmm

Offline

#5 2009-08-16 16:42:25

hbekel
Member
Registered: 2008-10-04
Posts: 311

Re: Bash problems

If you are using gnome+gdm and are randomly logged out of your gnome session, see this thread (and others related to 'random logout')

http://bbs.archlinux.org/viewtopic.php?id=77703

If this applies to you, try the suggestion in the last post of that thread first.

Offline

#6 2009-08-16 22:15:03

some-guy94
Member
Registered: 2009-08-15
Posts: 360

Re: Bash problems

hbekel wrote:

If you are using gnome+gdm and are randomly logged out of your gnome session, see this thread (and others related to 'random logout')

http://bbs.archlinux.org/viewtopic.php?id=77703

If this applies to you, try the suggestion in the last post of that thread first.

Thanks, it seems to have worked

Offline

Board footer

Powered by FluxBB