[BusyBox 0000404]: Miscalculation of prompt length in command-line editing

Vladimir N. Oleynik dzo at simtreas.ru
Mon Aug 29 09:31:40 UTC 2005


Charles,

> Description:
>    The length of prompt is mis-calcluated when command-line prompt string
> contains pairs of '\[' and '\]' characters. For example, setting PS1 to
> '\[\033]0;\u@\h:\w\007\][\u@\h \w]\$ ' will cause problems in command-line
> editing when the commands entered are long enough.

Ok. I have forgotten about such specific usage with \007 for xterm.
I shall think of optimum correction. (for reducing double strlen()).


--w
vodz





More information about the busybox mailing list