actuallly syslexia - 7f not f7!!!!
authorraster <raster@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Wed, 27 Jun 2012 10:09:50 +0000 (10:09 +0000)
committerraster <raster@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Wed, 27 Jun 2012 10:09:50 +0000 (10:09 +0000)
git-svn-id: http://svn.enlightenment.org/svn/e/trunk/terminology@72936 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

src/bin/termpty.c

index 1847aac..445c4d0 100644 (file)
@@ -1762,6 +1762,12 @@ _handle_seq(Termpty *ty, const int *c, int *ce)
              return 1;
           }
      }
+   else if (c[0] == 0x7f) // DEL
+     {
+        ERR("unhandled char 0x%02x [DEL]", c[0]);
+        ty->state.had_cr = 0;
+        return 1;
+     }
    else if (c[0] == 0x9b) // ANSI ESC!!!
      {
         int v;
@@ -1775,7 +1781,7 @@ _handle_seq(Termpty *ty, const int *c, int *ce)
 
    cc = (int *)c;
    DBG("txt: [");
-   while ((cc < ce) && (*cc >= 0x20))
+   while ((cc < ce) && (*cc >= 0x20) && (*cc != 0x7f))
      {
         DBG("%c", *cc);
         cc++;