ignore libreadline6's \033[?1034s
authorbarbieri <barbieri@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Tue, 19 Jun 2012 18:57:56 +0000 (18:57 +0000)
committerbarbieri <barbieri@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Tue, 19 Jun 2012 18:57:56 +0000 (18:57 +0000)
seems libreadline6 will issue such escape to toggle 8-bit input, but
it shouldnt:

http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=577012

Thanks to KainX for helping.

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/terminology@72500 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

src/bin/termpty.c

index a1aab7d..3154e9d 100644 (file)
@@ -905,6 +905,14 @@ _handle_esc_csi(Termpty *ty, const int *c, int *ce)
                                  else
                                    _cursor_copy(&(ty->save), &(ty->state));
                                  break;
+
+                               case 1034:
+                                  /* libreadline6 emits it but it shouldn't.
+                                     See http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=577012
+                                  */
+                                  handled = 1;
+                                  DBG("Ignored screen mode %i", arg);
+                                  break;
                                default:
                                  ERR("unhandled screen mode arg %i\n", arg);
                                  break;