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