You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
I am calling setCursorColor() to change the color of the cursor. After the call, the cursor is still the default gray color.
To Reproduce
Call terminalView?.setCursorColor(source: (termView?.getTerminal())!, color: SwiftTerm.Color(red: 0, green: 0, blue: 65535)). The cursor does not change color after the call.
Expected behavior
I would expect the cursor to become blue after that call.
Smartphone (please complete the following information):
Device: iPad Pro and iPhone 8
OS: iOS 16.5
Additional context
It could be that I am calling the wrong function, or calling it in the wrong way, but I did not find anything in the documentation about it.
I also looked into the source code of SwiftTermApp to check for the proper call, but I could not find a single call to setCursorColor() in there.
The text was updated successfully, but these errors were encountered:
I am seeing the same issue with the macOS version, SwiftTerm 1.2.5. In this case:
CaretView in MacCaretView.swift: public var caretColor: NSColor = NSColor.selectedControlColor { didSet { updateView() } }
This does not update the var bgColor; the drawCursor function of CaretView extension in CaretView.swift appears to use the bgColor rather than caretColor to draw the cursor:
Describe the bug
I am calling
setCursorColor()
to change the color of the cursor. After the call, the cursor is still the default gray color.To Reproduce
Call
terminalView?.setCursorColor(source: (termView?.getTerminal())!, color: SwiftTerm.Color(red: 0, green: 0, blue: 65535))
. The cursor does not change color after the call.Expected behavior
I would expect the cursor to become blue after that call.
Smartphone (please complete the following information):
Additional context
It could be that I am calling the wrong function, or calling it in the wrong way, but I did not find anything in the documentation about it.
I also looked into the source code of SwiftTermApp to check for the proper call, but I could not find a single call to
setCursorColor()
in there.The text was updated successfully, but these errors were encountered: