mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-10-06 18:06:33 +00:00
implement cursor reset when data comes in pty
This commit is contained in:
@@ -442,8 +442,8 @@ pub fn setFocus(self: *OpenGL, focus: bool) !void {
|
||||
}
|
||||
|
||||
/// Called to toggle the blink state of the cursor
|
||||
pub fn blinkCursor(self: *OpenGL) void {
|
||||
self.cursor_visible = !self.cursor_visible;
|
||||
pub fn blinkCursor(self: *OpenGL, reset: bool) void {
|
||||
self.cursor_visible = reset or !self.cursor_visible;
|
||||
}
|
||||
|
||||
/// The primary render callback that is completely thread-safe.
|
||||
|
Reference in New Issue
Block a user