enable/disable autowrap

This commit is contained in:
Mitchell Hashimoto
2022-07-08 17:43:52 -07:00
parent 79f684ab0f
commit 4b6968e0d1
3 changed files with 9 additions and 1 deletions

View File

@@ -748,6 +748,10 @@ pub fn setMode(self: *Window, mode: terminal.Mode, enabled: bool) !void {
self.terminal.setCursorPos(1, 1);
},
.autowrap => {
self.terminal.mode_autowrap = enabled;
},
.bracketed_paste => self.bracketed_paste = true,
else => if (enabled) log.warn("unimplemented mode: {}", .{mode}),