implement cursor reset when data comes in pty

This commit is contained in:
Mitchell Hashimoto
2022-11-05 19:26:42 -07:00
parent aa98e3ca3a
commit 746858cea6
7 changed files with 37 additions and 15 deletions

View File

@@ -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.