bug-readline
[Top][All Lists]
Advanced

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

Re: [Bug-readline] readline modified env (LINES+COLUMNS)


From: Chet Ramey
Subject: Re: [Bug-readline] readline modified env (LINES+COLUMNS)
Date: Sun, 15 Sep 2013 18:14:43 -0400
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.8; rv:17.0) Gecko/20130328 Thunderbird/17.0.5

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    address@hidden    http://cnswww.cns.cwru.edu/~chet/



reply via email to

[Prev in Thread] Current Thread [Next in Thread]