From 13d0439623324b2157bab26944283d75487a5118 Mon Sep 17 00:00:00 2001 From: Siarzhuk Zharski Date: Sat, 16 Mar 2013 07:54:14 +0100 Subject: [PATCH] Terminal data flow debug capture improved This modification moves the debug characters capture call directly into the _NextParseChar(). That allows to capture all data flow without missing things like OSC control sequences. --- src/apps/terminal/TermParse.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/apps/terminal/TermParse.cpp b/src/apps/terminal/TermParse.cpp index 2a0f609c67..7197ab2435 100644 --- a/src/apps/terminal/TermParse.cpp +++ b/src/apps/terminal/TermParse.cpp @@ -69,6 +69,10 @@ TermParse::_NextParseChar() throw error; } +#ifdef USE_DEBUG_SNAPSHOTS + fBuffer->CaptureChar(fParserBuffer[fParserBufferOffset]); +#endif + return fParserBuffer[fParserBufferOffset++]; } @@ -410,10 +414,6 @@ TermParse::EscParse() //debug_printf("TermParse: char: '%c' (%d), parse state: %d\n", c, c, parsestate[c]); -#ifdef USE_DEBUG_SNAPSHOTS - fBuffer->CaptureChar(c); -#endif - switch (parsestate[c]) { case CASE_PRINT: fBuffer->InsertChar((char)c);