OhmNomNom / thyme

A fork of mintty, for the modern world
GNU General Public License v3.0
0 stars 0 forks source link

Alt-Tab under WinXP handed down to terminal #185

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Under WinXP (SP3), mintty 0.6.2, open mintty and another window
2. Toggle windows with <Alt-Tab> (that is, leave mintty with <Alt-Tab>)
3. See, that the terminal receives a '[A' sequence
3a. If you don't see it, you might notice, that the terminal input
'swallows' the first character after switching back to mintty (I noticed
the '[A' sequence inside a ssh session, where it gets printed on the screen.)

What is the expected output? What do you see instead?
Actually, the windows do switch, but *additionally* mintty hands down a
control sequence to the terminal. As mentioned above, I didn't realize this
for a time and just observed that mintty doesn't put the first typed
character on the screen after re-focusing.

That shouldn't happen, or at least should be configurable. IMHO, <Alt-Tab>
should be completely ignored by mintty itself and only used to switch Win
windows.

This problem doesn't happen on my Vista machine.

Original issue reported on code.google.com by bolde...@gmail.com on 10 May 2010 at 1:43

GoogleCodeExporter commented 9 years ago
I found that VK_TAB events aren't even delivered to mintty if Alt is down, but 
it 
contains code for ignoring Alt+Tab anyway, just in case. Also, Tab shouldn't 
yield 
anything involving '[A' in any combination. ArrowUp sends '\e[A' though.

Have you got the 'Lone Alt sends ESC' option enabled? It might be mintty is 
seeing the 
Alt going down and up, but since it doesn't get to see the Tab in between, it 
sends an 
ESC character. That might cause the next character to be swallowed as you 
describe. Due 
to issues like this, mintty 0.7 no longer contains that option.

Original comment by andy.koppe on 10 May 2010 at 7:06

GoogleCodeExporter commented 9 years ago
Yes, I had the "Lone Alt sends Esc" enabled, and it seems, that disabling it 
solves
the problem. Thanks!

Original comment by bolde...@gmail.com on 12 May 2010 at 7:35

GoogleCodeExporter commented 9 years ago
Thanks for reporting back. Closing as fixed in 0.7 (by removing the option).

Original comment by andy.koppe on 12 May 2010 at 11:24