Subj : ansi escape detection To : Tracker1 From : sinister x Date : Mon Aug 22 2005 12:37 pm > I know that after pressing escape, that sync waits a second or two to see > if [ follows it, maybe, given the way TCP works with most term programs, > this c be reduced to say 500ms? I like to use escape to allow the exit > from a menu and the wait makes things seem really sluggish.. just a > thought/suggestion. -- Michael J. Ryan - tracker1(at)theroughnecks(dot)net > - www.theroughnecks.net icq: 4935386 - AIM/AOL: azTracker1 - Y!: It's a polling issue, you can either mod the source yourself and lower the timeout (not a generally good idea), or you can rewrite your waiting code like I had to do for Psylent to get escapes to work (I originally did a timeout method), basically I do no timeout on mine. I also read in an extra key for each keypress to see what follows, the code generally works the way I have it written (it's much more complicated than that) b/c of the way that tcp packets are structured. If you get an escape and that's it, in my case it would be followed by a timeout (-1) so I can tell right there it's a regular escape. -- --- þ Synchronet þ theroughnecks.net - you know you want it .