mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-07-14 15:56:13 +03:00
ctrl-l is form feed
This commit is contained in:
@ -305,6 +305,8 @@ fn keyCallback(
|
||||
//log.info("KEY {} {} {} {}", .{ key, scancode, mods, action });
|
||||
if (action == .press or action == .repeat) {
|
||||
const c: u8 = switch (key) {
|
||||
// Ctrl-L form-feed
|
||||
.l => if (mods.control) 0x0C else return,
|
||||
.backspace => 0x08,
|
||||
.enter => '\n',
|
||||
else => return,
|
||||
|
@ -114,7 +114,7 @@ pub fn append(self: *Terminal, alloc: Allocator, str: []const u8) !void {
|
||||
///
|
||||
/// This may allocate if necessary to store the character in the grid.
|
||||
pub fn appendChar(self: *Terminal, alloc: Allocator, c: u8) !void {
|
||||
log.debug("char: {}", .{c});
|
||||
//log.debug("char: {}", .{c});
|
||||
const actions = self.parser.next(c);
|
||||
for (actions) |action_opt| {
|
||||
switch (action_opt orelse continue) {
|
||||
|
Reference in New Issue
Block a user