You are not logged in.
Hello,
i've noticed that every time i issue a long command the prompt-and the terminal in general-gets screwed up and it gets worse when i try to correct it with the arrow buttons.
I've tried both securecrt and putty and the same happens. I am using vt100 terminal emulation in both applications.
An example of how the terminal gets screwed:
e/tester ';'ia:~:503>find / -wholename '/tmp' -prune , -iname '*.doc' -execdir grep -q "grave" '{}' ; -print -execdir cp '{}' /home
/home/tester/no-latin1.doc
/usr/share/kbd/keymaps/i386/qwerty/no-latin1.doc
root:egnatia:~:504>
The command i had issued is:
find / -wholename '/tmp' -prune , -iname '*.doc' -execdir grep -q "grave" '{}' ; -print -execdir cp '{}' /home/tester ';'
Can somebody help me with that?
Offline
It happens sometime here especially when I resize the terminal window. What I do to fix it, is to change the window size a bit (increase it a bit then decrease it to its original size) and it fixes by itself.
Offline
I have had this problem with Gnome Terminal since i have memory... i dont know why it isnt fixed yet. I usually end deleting the whole thing and maximizing the Terminal... not the best solution though.
Leonardo Andrés Gallego
www.archlinux-es.org || Comunidad Hispana de Arch Linux
Offline
Thank you for the comments guys.
Actually i am facing this problem from a text environment, not graphical, X11, etc.
I am facing this problem whe connecting via SSH to the archlinux server.
Can it be a bug of bash?
I am asking that, because with the same terminal i am connecting to a Slackware server and i do not face any problem when issuing long commands.
EDIT: Actually i thing the wrapping fails, instead of continuing to the next line, it continues to the beginning of the same line, thus destroying the prompt and causing general malfunction to the terminal!
Offline
If you want to test if it is a bug with bash, try with other shells and tell us how they do.
Offline
In bash, run:
shopt -s checkwinsize
and try again.
Offline
reset
may work too
Offline
This also occurs in yakuake. A very annoying problem, that's for sure.
Some PKGBUILDs: http://members.lycos.co.uk/sweiss3
Offline
Well this is very interesting ... I copied and pasted this
find / -wholename '/tmp' -prune , -iname '*.doc' -execdir grep -q "grave" '{}' ; -print -execdir cp '{}' /home/tester ';'
which was indicated as the command that scews things up.
I did it in konsole and yakuake but nothing goes wrong. I'm using KDE, could the problem be related to Gnome?
Offline
Well this is very interesting ... I copied and pasted this
find / -wholename '/tmp' -prune , -iname '*.doc' -execdir grep -q "grave" '{}' ; -print -execdir cp '{}' /home/tester ';'
which was indicated as the command that scews things up.
I did it in konsole and yakuake but nothing goes wrong. I'm using KDE, could the problem be related to Gnome?
Hello,
i am not using X or other GUI, just terminal emulators fron MS XP PRO (securecrt and putty).
Offline
reset
may work too
Had already tried, no luck, thanx however!
Offline
In bash, run:
shopt -s checkwinsize
and try again.
No luck, thanx!
Offline
If you want to test if it is a bug with bash, try with other shells and tell us how they do.
Very good idea, will do!
EDIT: with csh and tcsh i don't have any problem at all! Only with bash!
Offline
codemac wrote:If you want to test if it is a bug with bash, try with other shells and tell us how they do.
Very good idea, will do!
EDIT: with csh and tcsh i don't have any problem at all! Only with bash!
The problem is probably with your prompt. Do you have a fancy prompt ?
make sure you enclose each escape sequence in your prompt within [ and ]
for example PS1=" [e[1;32m]my_prompt_text[e[1;32m][e[0m] $"
Offline
123456789 wrote:codemac wrote:If you want to test if it is a bug with bash, try with other shells and tell us how they do.
Very good idea, will do!
EDIT: with csh and tcsh i don't have any problem at all! Only with bash!
The problem is probably with your prompt. Do you have a fancy prompt ?
make sure you enclose each escape sequence in your prompt within [ and ]for example PS1=" [e[1;32m]my_prompt_text[e[1;32m][e[0m] $"
Hello Antonis!
My prompt is:
PS1='[33[1;33m]u[33[0m]]:h:[33[1;33m]w[33[0m]]:!>$ '
However, with same prompt (and the same .bashrc) in Slackware it doesn't get screwed up!
Offline
There are mistakes in your prompt your prompt should be like this:
PS1='[33[1;33m]u[33[0m]:h:[33[1;33m]w[33[0m]:!>$ '
Try it everything should be fixed now !!!
Offline
There are mistakes in your prompt your prompt should be like this:
PS1='[33[1;33m]u[33[0m]:h:[33[1;33m]w[33[0m]:!>$ '
Try it everything should be fixed now !!!
You are GREAT!
Thank you very much!
I had two mistakes in the prompt...everything works fine now!
Regards from Thessaloniki!
Offline