mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-07-14 15:56:13 +03:00
terminal: ignore SOH/STX, bash sends this for some reason
This commit is contained in:
@ -5,6 +5,10 @@
|
||||
pub const C0 = enum(u7) {
|
||||
/// Null
|
||||
NUL = 0x00,
|
||||
/// Start of heading
|
||||
SOH = 0x01,
|
||||
/// Start of text
|
||||
STX = 0x02,
|
||||
/// Enquiry
|
||||
ENQ = 0x05,
|
||||
/// Bell
|
||||
|
@ -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()
|
||||
|
Reference in New Issue
Block a user