mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-07-15 00:06:09 +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) {
|
pub const C0 = enum(u7) {
|
||||||
/// Null
|
/// Null
|
||||||
NUL = 0x00,
|
NUL = 0x00,
|
||||||
|
/// Start of heading
|
||||||
|
SOH = 0x01,
|
||||||
|
/// Start of text
|
||||||
|
STX = 0x02,
|
||||||
/// Enquiry
|
/// Enquiry
|
||||||
ENQ = 0x05,
|
ENQ = 0x05,
|
||||||
/// Bell
|
/// Bell
|
||||||
|
@ -76,7 +76,8 @@ pub fn Stream(comptime Handler: type) type {
|
|||||||
defer tracy.end();
|
defer tracy.end();
|
||||||
|
|
||||||
switch (@as(ansi.C0, @enumFromInt(c))) {
|
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"))
|
.ENQ => if (@hasDecl(T, "enquiry"))
|
||||||
try self.handler.enquiry()
|
try self.handler.enquiry()
|
||||||
|
Reference in New Issue
Block a user