mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-07-14 15:56:13 +03:00
use queueWrite helper
This commit is contained in:
@ -363,14 +363,7 @@ fn keyCallback(
|
|||||||
};
|
};
|
||||||
|
|
||||||
const win = window.getUserPointer(Window) orelse return;
|
const win = window.getUserPointer(Window) orelse return;
|
||||||
const req = win.write_req_pool.get() catch unreachable;
|
win.queueWrite(&[1]u8{c}) catch unreachable;
|
||||||
const buf = win.write_buf_pool.get() catch unreachable;
|
|
||||||
buf[0] = c;
|
|
||||||
win.pty_stream.write(
|
|
||||||
.{ .req = req },
|
|
||||||
&[1][]u8{buf[0..1]},
|
|
||||||
ttyWrite,
|
|
||||||
) catch unreachable;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user