Bug 56732

Summary: problems with echo -n
Product: [Applications] konsole Reporter: Konrad Scorciapino <fallenbr>
Component: generalAssignee: Konsole Developer <konsole-devel>
Status: RESOLVED NOT A BUG    
Severity: normal    
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: FreeBSD Ports   
OS: FreeBSD   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Konrad Scorciapino 2003-04-02 01:32:27 UTC
Version:            (using KDE KDE 3.1)
Installed from:    FreeBSD Ports
Compiler:          gcc version 2.95.3 
OS:          FreeBSD

When using `echo -n`, the console gets displaced. Then, if you press the "up" key to get a previous command, and it is bigger than a line, and you use the backspace, usually you can delete your command line.Ex: 
joe@localhost# echo -n "FOOBAR"
FOOBARjoe@localhost#          
(Then you press "up")
FOOBARjoe@localhost#          echo "DODECAHE
DRON"
( Then you press the backspace key multiple times)
FOOBARjoe@localho
Comment 1 Thiago Macieira 2003-04-02 02:05:33 UTC
This is not a bug. If you want to bring this to someone's attention, you should 
contact the responsible people for the shell program you're using (/bin/sh, GNU 
Bash, tcsh, ksh, zsh, whatever). This is also not a problem with echo itself, which is 
one of the simplest commands in existance. 
 
That happens because the shells usually have no control over the exact position of 
the cursor on the screen -- all they know is how much data you have typed and it's 
showing. Since the cursor was not where it was supposed to be (i.e., start of a line), 
the whole thing gets dislocated. 
 
If this bothers you horribly, you can hit Ctrl+L to have your shell redraw the screen. 
Note it'll probably erase it.