feat(terminal/cursor): add support for cursor shape configuration
Zig Project Action / Lint, Spell-check and test zig project (push) Failing after 1m5s

This commit is contained in:
2025-11-20 18:46:58 +01:00
parent 424740d350
commit 9488d0b64d
6 changed files with 22 additions and 5 deletions
+2
View File
@@ -687,9 +687,11 @@ pub fn Input(Model: type, Event: type, Queue: type) fn (meta.FieldEnum(Event)) t
if (this.input.items.len < cells.len) {
cells[this.input.items.len - this.cursor_offset].style.cursor = true;
cells[this.input.items.len - this.cursor_offset].style.cursor_color = this.configuration.cursor;
cells[this.input.items.len - this.cursor_offset].style.cursor_shape = .bar_blinking;
} else {
cells[this.input.items.len - offset - this.cursor_offset].style.cursor = true;
cells[this.input.items.len - offset - this.cursor_offset].style.cursor_color = this.configuration.cursor;
cells[this.input.items.len - offset - this.cursor_offset].style.cursor_shape = .bar_blinking;
}
}
};