mirror of
https://github.com/ghostty-org/ghostty.git
synced 2026-04-19 14:00:29 +00:00
renderer: implement underline cursor
This commit is contained in:
@@ -9,13 +9,14 @@ pub const CursorStyle = enum {
|
||||
block,
|
||||
block_hollow,
|
||||
bar,
|
||||
underline,
|
||||
|
||||
/// Create a cursor style from the terminal style request.
|
||||
pub fn fromTerminal(style: terminal.Cursor.Style) ?CursorStyle {
|
||||
return switch (style) {
|
||||
.bar => .bar,
|
||||
.block => .block,
|
||||
.underline => null, // TODO
|
||||
.underline => .underline,
|
||||
};
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user