erase line complete

This commit is contained in:
Mitchell Hashimoto
2022-06-24 10:02:50 -07:00
parent e8ce48c8d9
commit 52c5af9228
2 changed files with 10 additions and 1 deletions

View File

@ -329,6 +329,11 @@ pub fn eraseLine(
std.mem.set(Screen.Cell, row[0..self.cursor.x], self.cursor.pen);
},
.complete => {
const row = self.screen.getRow(self.cursor.y);
std.mem.set(Screen.Cell, row, self.cursor.pen);
},
else => {
log.err("unimplemented erase line mode: {}", .{mode});
@panic("unimplemented");

View File

@ -10,6 +10,10 @@ pub const EraseDisplay = enum(u8) {
pub const EraseLine = enum(u8) {
right = 0,
left = 1,
complete = 3,
complete = 2,
right_unless_pending_wrap = 4,
// Non-exhaustive so that @intToEnum never fails since the inputs are
// user-generated.
_,
};