On 9/15/13 12:54 PM, Jan Kratochvil wrote:
> Hello Chet,
> 
> sh_set_lines_and_columns() sets "LINES" and "COLUMNS".
> (It appears so also in bash f281b8f4f8936b2713966274d9f8508a9f0910e4.)

This was discussed a couple of months ago in the thread starting at
http://lists.gnu.org/archive/html/bug-bash/2013-07/msg00054.html

> This makes gdb needlessly less transparent to its debugged programs.
> 
> readline should not need to call setenv() to do its job.

I disagree for the same reasons as in the previous thread.  If the gdb
developers don't want this to happen, you can 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().

Chet

-- 
``The lyf so short, the craft so long to lerne.'' - Chaucer
                 ``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, ITS, CWRU    [email protected]    http://cnswww.cns.cwru.edu/~chet/

_______________________________________________
Bug-readline mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/bug-readline

Reply via email to