diff --git a/lib/src/core/escape/parser.dart b/lib/src/core/escape/parser.dart index 0c7e74a9..075febad 100644 --- a/lib/src/core/escape/parser.dart +++ b/lib/src/core/escape/parser.dart @@ -329,12 +329,14 @@ class EscapeParser { /// https://terminalguide.namepad.de/seq/csi_sc/ void _csiHandleSendDeviceAttributes() { switch (_csi.prefix) { + case null: + return handler.sendPrimaryDeviceAttributes(); case Ascii.greaterThan: return handler.sendSecondaryDeviceAttributes(); case Ascii.equal: return handler.sendTertiaryDeviceAttributes(); default: - handler.sendPrimaryDeviceAttributes(); + handler.unknownCSI(_csi.finalByte); } }