NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

lib/48429: [libedit] doesn't handle terminal resize events properly



>Number:         48429
>Category:       lib
>Synopsis:       [libedit] doesn't handle terminal resize events properly
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    lib-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sat Dec 07 09:30:00 +0000 2013
>Originator:     Yuri
>Release:        current
>Organization:
n/a
>Environment:
>Description:
When libedit-based program in terminal is resized, currently entered characters 
should stay in place when possible.
Actual behavior: command prompt is printed at the end of the current line 
during any screen resize. So that there are several prompts after several 
resizes.

Problematic place in code: function terminal_change_size calls 
re_clear_display, and it initializes cursor position in memory, but not on the 
screen.

Does NetBSD actually use libedit for shell? Does it behave the same way in 
graphics terminal? I guess yes.
NetBSD is considered to be an upstream for libedit, and it has such major 
issues.

Also, see the relevant FreeBSD PR: 
http://www.freebsd.org/cgi/query-pr.cgi?pr=169773
This was the behavior with the previous version of libedit from NetBSD in the 
same situation.
>How-To-Repeat:

>Fix:



Home | Main Index | Thread Index | Old Index