Open rmunn opened 7 months ago
Probably caused by https://github.com/wxWidgets/wxWidgets/issues/18722. My current system has wxWidgets 3.0.5 on it, where that bug exists. I see that https://github.com/wxWidgets/wxWidgets/commit/2197f9d10e8841ab97d919ff6fcde5bb9721c6ce fixes the bug, at least for the wxGTK version (which is what I have), and that commit was incorporated into wxWidgets 3.1.4. So there are probably no code changes needed in UCBLogo, as long as a suitably recent version of wxWidgets is installed.
I'll leave this bug report open until I can confirm that wxWidgets 3.1.4 or later fixes the bug, then I'll close the issue once I'm certain that no change in UCBLogo will be necessary.
if you type EDIT to get to the built-in editor, the text cursor is black no matter what the text foreground and background colors are set to. With the default white text on black background, that results in an invisible cursor. Changing the text background with SETTEXTCOLOR to something non-black worked, and allowed me to have a visible cursor in EDIT mode, but I'd rather find a permanent solution.
I've looked through the wxWidgets documentation and can't find any way to set the text cursor color (!), so for now in my own copy of UCBLogo I've applied the following patch to change the editor colors to black text on gray background:
That works for what I need it for, but it's less than ideal as a general-purpose as it removes the possibility of customizing the colors in the editor via SETTEXTCOLOR. If anyone knows how to change the color of the blinking text cursor that wxWidgets draws, that would be a better solution to this issue. (Note that https://github.com/jrincayc/ucblogo-code/issues/11 would probably also have been fixed by this and https://github.com/jrincayc/ucblogo-code/pull/12 would have been unnecessary; the cursor was probably invisible because it was being drawn in black against a black background).