[vte] parser: Ignore most C0 controls in OSC string



commit 039d85213be271c91b2609369a2cf87dc21e8a3a
Author: Christian Persch <chpe src gnome org>
Date:   Tue Mar 27 19:40:13 2018 +0200

    parser: Ignore most C0 controls in OSC string
    
    Instead of clearing the sequence, just drop the character,
    except for CAN, SUB and ESC.
    
    Note that this differs from xterm's behaviour.

 src/parser.cc |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/parser.cc b/src/parser.cc
index 4d19a8b..f90736a 100644
--- a/src/parser.cc
+++ b/src/parser.cc
@@ -1606,7 +1606,7 @@ static int parser_feed_to_state(struct vte_parser *parser, uint32_t raw)
                 case 0x08 ... 0x1a:
                 case 0x1c ... 0x1f:
                         return parser_transition(parser, raw, STATE_NONE,
-                                                 ACTION_IGNORE);
+                                                 ACTION_NONE);
                 case 0x1b:                /* ESC */
                         return parser_transition(parser, raw, STATE_OSC_STRING_ESC,
                                                  ACTION_NONE);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]