Bug 13989

Summary: SIGWINCH corrupts the display of a multiline readline prompt with invisible characters
Product: Base System Reporter: Tony Finch <dot>
Component: gnuAssignee: freebsd-bugs (Nobody) <bugs>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: Unspecified   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
file.diff
none
file.diff none

Description Tony Finch 1999-09-27 04:40:00 UTC
If you are using libreadline with a multiline prompt containing invisible
characters on the last line, then when the program receives SIGWINCH and
redraws the last line of the prompt it outputs spurious ^A and ^B
character(s).

Fix: I think the first patch is correct; the second one *might* catch more
cases, but requires a bit more work at run time. 

How-To-Repeat: run bash in an xterm
set PS1 to 'line one\n\[\e[1m\]line two\[\e[0m\] '
you will then have a two line prompt with invisible characters on the second line
change the size of the xterm; the second line will be bracketed with
a diamond-dither pair
Comment 1 Tony Finch 2000-10-09 15:01:03 UTC
This has been fixed in a more recent version of readline, so the PR
can be closed.

Tony.
-- 
en oeccget g mtcaa    f.a.n.finch
v spdlkishrhtewe y    dot@dotat.at
eatp o v eiti i d.    fanf@covalent.net
Comment 2 Johan Karlsson freebsd_committer freebsd_triage 2000-10-10 22:36:52 UTC
State Changed
From-To: open->closed

Closed at originators request.