mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-07-15 00:06:09 +03:00
Merge pull request #1478 from qwerasd205/fix-c0
fix(terminal): send SI to execute instead of print
This commit is contained in:
@ -91,7 +91,7 @@ pub fn Stream(comptime Handler: type) type {
|
|||||||
while (self.parser.state == .ground and offset < input.len) {
|
while (self.parser.state == .ground and offset < input.len) {
|
||||||
const res = simd.vt.utf8DecodeUntilControlSeq(input[offset..], cp_buf);
|
const res = simd.vt.utf8DecodeUntilControlSeq(input[offset..], cp_buf);
|
||||||
for (cp_buf[0..res.decoded]) |cp| {
|
for (cp_buf[0..res.decoded]) |cp| {
|
||||||
if (cp < 0xF) {
|
if (cp <= 0xF) {
|
||||||
try self.execute(@intCast(cp));
|
try self.execute(@intCast(cp));
|
||||||
} else {
|
} else {
|
||||||
try self.print(@intCast(cp));
|
try self.print(@intCast(cp));
|
||||||
@ -131,7 +131,7 @@ pub fn Stream(comptime Handler: type) type {
|
|||||||
const res = self.utf8decoder.next(c);
|
const res = self.utf8decoder.next(c);
|
||||||
consumed = res[1];
|
consumed = res[1];
|
||||||
if (res[0]) |codepoint| {
|
if (res[0]) |codepoint| {
|
||||||
if (codepoint < 0xF) {
|
if (codepoint <= 0xF) {
|
||||||
try self.execute(@intCast(codepoint));
|
try self.execute(@intCast(codepoint));
|
||||||
} else {
|
} else {
|
||||||
try self.print(@intCast(codepoint));
|
try self.print(@intCast(codepoint));
|
||||||
|
Reference in New Issue
Block a user