mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-07-16 00:36:07 +03:00
renderer: implement underline cursor
This commit is contained in:
@ -1423,6 +1423,7 @@ fn addCursor(
|
||||
.block => .cursor_rect,
|
||||
.block_hollow => .cursor_hollow_rect,
|
||||
.bar => .cursor_bar,
|
||||
.underline => .underline,
|
||||
};
|
||||
|
||||
const glyph = self.font_group.renderGlyph(
|
||||
|
@ -1024,6 +1024,7 @@ fn addCursor(
|
||||
.block => .cursor_rect,
|
||||
.block_hollow => .cursor_hollow_rect,
|
||||
.bar => .cursor_bar,
|
||||
.underline => .underline,
|
||||
};
|
||||
|
||||
const glyph = self.font_group.renderGlyph(
|
||||
|
@ -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