Add some comments to VT state machine

For clarity, the VT state machine has some comments where it differs
from the diagram from vt100.net. Add comments for some transitions on
String Terminator (ST / 0x9C) which appear on the diagram, but which
were already handled in the "anywhere" state.
wilder
Luis Javier Merino Morán 4 years ago
parent 24b0c08d9f
commit 05a4d48991
  1. 5
      src/Vt102Emulation.cpp

@ -868,11 +868,13 @@ void Vt102Emulation::receiveChars(const QVector<uint> &chars)
case DcsPassthrough: case DcsPassthrough:
if (cc <= 0x7E || cc >= 0xA0) { // 0x18, 0x1A, 0x1B already taken care of if (cc <= 0x7E || cc >= 0xA0) { // 0x18, 0x1A, 0x1B already taken care of
put(cc); put(cc);
// 0x9C already taken care of.
} else if (cc == 0x7F) { } else if (cc == 0x7F) {
// ignore // ignore
} }
break; break;
case DcsIgnore: case DcsIgnore:
// 0x9C already taken care of.
if (cc <= 0x7F) { if (cc <= 0x7F) {
// ignore // ignore
} }
@ -889,8 +891,9 @@ void Vt102Emulation::receiveChars(const QVector<uint> &chars)
break; break;
case SosPmApcString: case SosPmApcString:
if (cc <= 0x7F || cc >= 0xA0) { // 0x18, 0x1A, 0x1B already taken care of. if (cc <= 0x7F || cc >= 0xA0) { // 0x18, 0x1A, 0x1B already taken care of.
apc_put(cc); apc_put(cc); // while the vt100.net diagram has ignore here, konsole does process some APCs (kitty images).
} }
// 0x9C already taken care of.
break; break;
default: default:
break; break;

Loading…
Cancel
Save