mirror of
https://github.com/FBukovina/Atoll.git
synced 2026-10-27 15:14:33 +00:00
Update TerminalManager.swift
This commit is contained in:
parent
d4cb3ef2cf
commit
ebaf1b0c2d
1 changed files with 2 additions and 2 deletions
|
|
@ -216,7 +216,7 @@ 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)
|
||||||
|
|
||||||
// Scrollback
|
// Scrollback
|
||||||
let scrollback = Defaults[.terminalScrollbackLines]
|
let scrollback = Defaults[.terminalScrollbackLines]
|
||||||
|
|
@ -254,7 +254,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