mirror of
https://github.com/FBukovina/Atoll.git
synced 2026-10-27 15:14:33 +00:00
Merge pull request #423 from sharma2007/bug/terminal-bugs
[Bug Fix] Terminal Bug(s)
This commit is contained in:
commit
3684802398
1 changed files with 5 additions and 2 deletions
|
|
@ -216,7 +216,10 @@ class TerminalManager: ObservableObject {
|
||||||
// Cursor style
|
// Cursor style
|
||||||
let cursorStyle = TerminalCursorStyleOption(rawValue: Defaults[.terminalCursorStyle])
|
let cursorStyle = TerminalCursorStyleOption(rawValue: Defaults[.terminalCursorStyle])
|
||||||
?? .blinkBlock
|
?? .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
|
// Scrollback
|
||||||
let scrollback = Defaults[.terminalScrollbackLines]
|
let scrollback = Defaults[.terminalScrollbackLines]
|
||||||
|
|
@ -254,7 +257,7 @@ class TerminalManager: ObservableObject {
|
||||||
/// Updates cursor style on the live terminal view.
|
/// Updates cursor style on the live terminal view.
|
||||||
func applyCursorStyle(_ style: TerminalCursorStyleOption) {
|
func applyCursorStyle(_ style: TerminalCursorStyleOption) {
|
||||||
guard let view = terminalView else { return }
|
guard let view = terminalView else { return }
|
||||||
view.getTerminal().options.cursorStyle = style.swiftTermStyle
|
view.getTerminal().setCursorStyle(style.swiftTermStyle)
|
||||||
view.setNeedsDisplay(view.bounds)
|
view.setNeedsDisplay(view.bounds)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue