migueldeicaza / SwiftTerm

Xterm/VT100 Terminal emulator in Swift
MIT License
992 stars 146 forks source link

setCursorColor() does not change the color of the cursor #342

Open holzschu opened 7 months ago

holzschu commented 7 months ago

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.