mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-07-14 15:56:13 +03:00
terminal: FF (0x0D) also invokes LF
This commit is contained in:
@ -21,6 +21,8 @@ pub const C0 = enum(u7) {
|
||||
LF = 0x0A,
|
||||
/// Vertical Tab
|
||||
VT = 0x0B,
|
||||
/// Form feed
|
||||
FF = 0x0C,
|
||||
/// Carriage return
|
||||
CR = 0x0D,
|
||||
/// Shift out
|
||||
|
@ -115,13 +115,7 @@ pub fn Stream(comptime Handler: type) type {
|
||||
else
|
||||
log.warn("unimplemented execute: {x}", .{c}),
|
||||
|
||||
.LF => if (@hasDecl(T, "linefeed"))
|
||||
try self.handler.linefeed()
|
||||
else
|
||||
log.warn("unimplemented execute: {x}", .{c}),
|
||||
|
||||
// VT is same as LF
|
||||
.VT => if (@hasDecl(T, "linefeed"))
|
||||
.LF, .VT, .FF => if (@hasDecl(T, "linefeed"))
|
||||
try self.handler.linefeed()
|
||||
else
|
||||
log.warn("unimplemented execute: {x}", .{c}),
|
||||
|
Reference in New Issue
Block a user