Subj : Re: ansi escape detection To : Tracker1 From : Digital Man Date : Wed Aug 24 2005 12:27 am Re: Re: ansi escape detection By: Tracker1 to Deuce on Tue Aug 23 2005 12:16 am > Deuce wrote: > >> I know that after pressing escape, that sync waits a second or two to see > >> [ follows it, maybe, given the way TCP works with most term programs, thi > >> be reduced to say 500ms? I like to use escape to allow the exit from a m > >> and the wait makes things seem really sluggish.. > > > > It could be changed, but it would be a bad idea. However, for prompts whe > > there are no "valid" ANSI sequences, I see no reason for it to wait... > > > > Got any juicy examples? > > Mainly in some of my scrolling list type menus, where you would use up/down > arrow keys, but have escape as a back option.. why would it be a bad idea to > reduce the poll/wait time for an escape followed by the ansi sequence. Because arrow keys are sent as ANSI escape sequences (e.g. ESC[A is the up arrow). If there is > 500ms latency between the ESC and the '[', then the user is exited from the menu rather than changing the selection up, like they intended. digital man Snapple "Real Fact" #94: Lizards communicate by doing push-ups. .