feat(terminal/cursor): add support for cursor shape configuration
Zig Project Action / Lint, Spell-check and test zig project (push) Failing after 1m5s
Zig Project Action / Lint, Spell-check and test zig project (push) Failing after 1m5s
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user