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.
This commit is contained in:
Siarzhuk Zharski 2013-03-16 07:54:14 +01:00
parent 0ac0b4d4a6
commit 13d0439623

View File

@ -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);