mirror of
https://github.com/fairyglade/ly.git
synced 2026-05-13 18:40:46 +00:00
Resolve merge conflict
Signed-off-by: AnErrupTion <anerruption@disroot.org>
This commit is contained in:
committed by
AnErrupTion
parent
f6c44d5e57
commit
692ca9f7b5
@@ -381,6 +381,12 @@ pub fn setCell(x: usize, y: usize, cell: Cell) void {
|
||||
);
|
||||
}
|
||||
|
||||
pub fn setCellBoundsChecked(self: *TerminalBuffer, x: isize, y: isize, cell: Cell) void {
|
||||
if (0 <= x and x < self.width and 0 <= y and y < self.height) {
|
||||
cell.put(@intCast(x), @intCast(y));
|
||||
}
|
||||
}
|
||||
|
||||
pub fn reclaim(self: TerminalBuffer) !void {
|
||||
if (self.termios) |termios| {
|
||||
// Take back control of the TTY
|
||||
|
||||
Reference in New Issue
Block a user