refactor: move input types to new module and use directly use libvaxis types
This commit is contained in:
parent
e08c2aa3ba
commit
18f321bf41
36 changed files with 1224 additions and 1363 deletions
|
@ -971,3 +971,15 @@ fn set_terminal_style(self: *Self) void {
|
|||
self.rdr.set_terminal_cursor_color(self.theme.editor_cursor.bg.?);
|
||||
}
|
||||
}
|
||||
|
||||
pub fn translate_cursor_shape(in: keybind.CursorShape) renderer.CursorShape {
|
||||
return switch (in) {
|
||||
.default => .default,
|
||||
.block_blink => .block_blink,
|
||||
.block => .block,
|
||||
.underline_blink => .underline_blink,
|
||||
.underline => .underline,
|
||||
.beam_blink => .beam_blink,
|
||||
.beam => .beam,
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue