Re:VS Code uses 13% CPU when idle due to blinking cursor ren...
by Mister_Snuggles on Thursday March 23, 2017 @06:40PM
(#13945003)
> I'm not aware of any system where one can create that caret without a text edit control to hold it.
Windows allows this. In a parent comment I posted a link to the API docs. All Windows requires is a window to hold the caret, it doesn't care what kind of window it is.
Certainly, on the original Mac OS (a system on which I worked on OS patches for detecting the location of the caret) the method that application used for drawing the caret varied widely. I've seen it implemented by drawing a line, by drawing a rectangle, either in one go or in two parts (that happened in applications that supported a split caret, even if the caret wasn't split), with various transfer modes. Slanted carets typically were application-specific, too.