terminal: ignore SOH/STX, bash sends this for some reason

This commit is contained in:
Mitchell Hashimoto
2023-08-17 13:40:11 -07:00
parent a058bcbdb0
commit c8a07abdf3
2 changed files with 6 additions and 1 deletions

View File

@@ -76,7 +76,8 @@ pub fn Stream(comptime Handler: type) type {
defer tracy.end();
switch (@as(ansi.C0, @enumFromInt(c))) {
.NUL => {},
// We ignore SOH/STX: https://github.com/microsoft/terminal/issues/10786
.NUL, .SOH, .STX => {},
.ENQ => if (@hasDecl(T, "enquiry"))
try self.handler.enquiry()