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
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 

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

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 

Also, see the relevant FreeBSD PR:
This was the behavior with the previous version of libedit from NetBSD in the 
same situation.


Home | Main Index | Thread Index | Old Index