[Bug 10376] (patch inside) lineedit: improve long prompt first redraw, clear screen, ctrl-c cursor

bugzilla at busybox.net bugzilla at busybox.net
Fri Nov 3 17:49:02 UTC 2017


https://bugs.busybox.net/show_bug.cgi?id=10376

--- Comment #2 from Denys Vlasenko <vda.linux at googlemail.com> ---
(In reply to avih from comment #0)
- Fix vertical alignment of first redraw(..) with long prompt, caused by
  possibly incorrect initial cursor calculation which assumed width is 80.
  Now we try to read the terminal width a bit earlier.

- Clear-screen (^L) now actually clears the screen after the cursor is
  reset, because \n in multiline PS1 are non destructive when printed.

- Ctrl-c now moves the cursor to the end of input:
  - Doesn't clutter it with "^C", e.g. it's possible to do selections.
  - Doens't obscure it with the next prompt if it spans multiple lines and
    the cursor is at the top (e.g. ctrl-c while in history search).


Can you give examples of $PS1 strigns for each change so that the improvement
can be reproduced?

-- 
You are receiving this mail because:
You are on the CC list for the bug.


More information about the busybox-cvs mailing list