bug-readline
[Top][All Lists]
Advanced

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

Re: [Bug-readline] readline sends meta_on escape sequence without regard


From: Chet Ramey
Subject: Re: [Bug-readline] readline sends meta_on escape sequence without regard for meta_flag passed to rl_prep_terminal
Date: Sat, 21 Jun 2014 19:16:01 -0400
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:24.0) Gecko/20100101 Thunderbird/24.5.0

On 6/20/14, 7:12 PM, Scott Bertilson wrote:
> Seems to me that the terminal mode adjustment applied when meta_flag is
> non-zero ought to also determine whether the escape sequence is sent.
> 
> Wondering if it makes sense for readline not to send out the meta_on escape
> sequence if rl_prep_terminal is called with a meta_flag of 0 since that
> disables the terminal mode adjustments for 8 bit input.

They're both user-controlled settings, though they default differently.
I think it's fine to leave them under the user's control.  Most systems
default to stty -istrip cs8, which means that the terminal gets eight
bits regardless of the state of input-meta anyway.  This means that the
enable-meta-key default is usually correct.

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]