Re: [code] [textadept] Missing features in textadept-ncurses?

From: Mitchell <m.att.foicica.com>
Date: Mon, 8 Apr 2013 13:01:43 -0400 (Eastern Daylight Time)

Pete,

On Sun, 7 Apr 2013, Pete Kazmier wrote:

> [snip]
>
>>> One more question, have
>>> you figured out how to make Esc cancel out of commands and dialogs faster?
>>> Right now, I feel like it pauses for about a second or two which is an
>>> eternity for a keyboard junkie like me. I'd prefer to map ctl-g to be the
>>> global cancel, but I don't think this will be possible as textadept defers
>>> dialogs to gtdialog which I'm going to guess is hardcoded with esc.
>>>
>>
>> You can tap 'Escape' twice in rapid succession to cancel out of dialogs. I
>> do not have a workaround for the delay since this seems to be built into
>> ncurses to allow for interpretation of manually entered escape sequences.
>> Please let me know if you find a workaround.
>
>
> It looks like there is a set_escdelay() that could be called in
> ScintillaTerm if you wanted to lower the default value, which seems to be
> 1s based on the output of get_escdelay(). While you ponder whether or not
> it would be a good idea, it looks like one can use the environment variable
> ESCDELAY to change the delay. For example, `export ESCDELAY=25` reduces the
> time from 1s to 25ms. It's better than the default of 1s, but there still
> is some other delay in there as it's longer than 25ms.

Okay, I will set the default to be 100ms in Textadept, but respect an
ESCDELAY env if it is defined. Thanks for letting me know about this
option. I wasn't aware of it.

Cheers,
Mitchell

-- 
You are subscribed to code.att.foicica.com.
To change subscription settings, send an e-mail to code+help.att.foicica.com.
To unsubscribe, send an e-mail to code+unsubscribe.att.foicica.com.
Received on Mon 08 Apr 2013 - 13:01:43 EDT

This archive was generated by hypermail 2.2.0 : Tue 09 Apr 2013 - 06:49:33 EDT