Yep the thread went off topic but did not want to start a new thread
XOR and other logic operators combined with memput and memget allow full control of cursor position and color
The code was just a simplified version. I think XOR can be used to turn a cursor on and off.