feat: implement remaining terminal handling functions via libvaxis

This commit is contained in:
CJ van den Berg 2024-05-21 21:46:58 +02:00
parent 36f167221e
commit 49ad54d60c
10 changed files with 94 additions and 88 deletions

View file

@ -155,7 +155,7 @@ fn render_terminal_title(self: *Self) void {
if (std.mem.eql(u8, self.title, new_title)) return;
@memcpy(self.title_buf[0..new_title.len], new_title);
self.title = self.title_buf[0..new_title.len];
tui.renderer.set_terminal_title(self.title);
tui.current().rdr.set_terminal_title(self.title);
}
pub fn receive(self: *Self, _: *Button.State(Self), _: tp.pid_ref, m: tp.message) error{Exit}!bool {