Merge pull request #423 from sharma2007/bug/terminal-bugs

[Bug Fix] Terminal Bug(s)
This commit is contained in:
Hariharan Mudaliar 2026-04-21 20:29:44 +05:30 • committed by GitHub
commit 3684802398
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -216,7 +216,10 @@ class TerminalManager: ObservableObject {
// Cursor style
let cursorStyle = TerminalCursorStyleOption(rawValue: Defaults[.terminalCursorStyle])
?? .blinkBlock
view.getTerminal().options.cursorStyle = cursorStyle.swiftTermStyle
view.getTerminal().setCursorStyle(cursorStyle.swiftTermStyle)
// Keep drawing the selected cursor style when TerminalView.hasFocus is false; SwiftTerm
view.caretViewTracksFocus = false
// Scrollback
let scrollback = Defaults[.terminalScrollbackLines]
@ -254,7 +257,7 @@ class TerminalManager: ObservableObject {
/// Updates cursor style on the live terminal view.
func applyCursorStyle(_ style: TerminalCursorStyleOption) {
guard let view = terminalView else { return }
view.getTerminal().options.cursorStyle = style.swiftTermStyle
view.getTerminal().setCursorStyle(style.swiftTermStyle)
view.setNeedsDisplay(view.bounds)
}