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:
@@ -69,6 +69,10 @@ TermParse::_NextParseChar()
|
|||||||
throw error;
|
throw error;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifdef USE_DEBUG_SNAPSHOTS
|
||||||
|
fBuffer->CaptureChar(fParserBuffer[fParserBufferOffset]);
|
||||||
|
#endif
|
||||||
|
|
||||||
return fParserBuffer[fParserBufferOffset++];
|
return fParserBuffer[fParserBufferOffset++];
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -410,10 +414,6 @@ TermParse::EscParse()
|
|||||||
|
|
||||||
//debug_printf("TermParse: char: '%c' (%d), parse state: %d\n", c, c, parsestate[c]);
|
//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]) {
|
switch (parsestate[c]) {
|
||||||
case CASE_PRINT:
|
case CASE_PRINT:
|
||||||
fBuffer->InsertChar((char)c);
|
fBuffer->InsertChar((char)c);
|
||||||
|
|||||||
Reference in New Issue
Block a user