tsm_vte: don't interpret Pause, it hangs the VTE
authorRan Benita <ran234@gmail.com>
Sat, 27 Oct 2012 10:11:23 +0000 (12:11 +0200)
committerDavid Herrmann <dh.herrmann@googlemail.com>
Sat, 27 Oct 2012 16:21:11 +0000 (18:21 +0200)
Pressing the 'Pause/Break' key causes the VTE to hang with no apparent
way to recover (from within kmscon). It must turn on some software flow
control, XON/XOFF or whatever.
We might want to do something with this key, but certainly not *that*.

Signed-off-by: Ran Benita <ran234@gmail.com>
Signed-off-by: David Herrmann <dh.herrmann@googlemail.com>
src/tsm_vte.c

index f9f8594..81b287f 100644 (file)
@@ -2398,9 +2398,15 @@ bool tsm_vte_handle_keyboard(struct tsm_vte *vte, uint32_t keysym,
                case XKB_KEY_Clear:
                        vte_write(vte, "\x0b", 1);
                        return true;
+               /*
+                TODO: What should we do with this key? Sending XOFF is awful as
+                      there is no simple way on modern keyboards to send XON
+                      again. If someone wants this, we can re-eanble it and set
+                      some flag.
                case XKB_KEY_Pause:
                        vte_write(vte, "\x13", 1);
                        return true;
+               */
                /*
                 TODO: What should we do on scroll-lock? Sending 0x14 is what
                       the specs say but it is not used today the way most