Bug 15958 - readline modifies env (LINES+COLUMNS)
Summary: readline modifies env (LINES+COLUMNS)
Status: NEW
Alias: None
Product: gdb
Classification: Unclassified
Component: cli (show other bugs)
Version: HEAD
: P2 normal
Target Milestone: ---
Assignee: Not yet assigned to anyone
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-09-16 12:06 UTC by Jan Kratochvil
Modified: 2013-09-16 12:06 UTC (History)
0 users

See Also:
Host:
Target:
Build:
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jan Kratochvil 2013-09-16 12:06:12 UTC
http://lists.gnu.org/archive/html/bug-readline/2013-09/msg00004.html

sh_set_lines_and_columns() sets "LINES" and "COLUMNS".

This makes gdb needlessly less transparent to its debugged programs.

readline upstream suggests a workaround:
> disable readline's SIGWINCH
> processing (rl_handle_sigwinch = 0), use its own SIGWINCH handler, and
> set readline's idea of the screen dimensions using rl_set_screen_size().