Menu

#295 Cursor should turn on and reset its timer on keypress

open
nobody
None
4
2010-02-10
2009-04-08
Scott Bilas
No

Consider when you have a line of text written. And you are left-cursoring (or ctrl-left) etc. to move to a spot in the text to make a correction. The flashing cursor makes this much more difficult because half the time you're holding down the left key the cursor is invisible.

The better way to do it is to show the cursor and reset the flash timer on any keypress (not just cursor movement chars). That way the cursor is on the whole time while moving around on the line, typing in new text, etc.

If you look at the standard console like with cmd.exe you'll see that this is how Windows does it.

Discussion

  • Phillip Foose

    Phillip Foose - 2009-04-10

    This is interesting.

    From what I can tell, the only real way to "fix" this behavior, since console isn't directly reading/interpreting the input, is whenever you go to draw the cursor, check if it's moved, if it has, reset the timer/redraw it, which is somewhat sloppy, though it does work.

    I can send up this patch at some point if it's believed to be a valid "fix" for this issue or a desired feature.

     
  • Scott Bilas

    Scott Bilas - 2009-04-10

    Maybe I don't understand how this app works. I had assumed that it was an ordinary Windows GUI app made to look exactly like a system console window. And that it runs by opening a console app as a shell, hiding its system console, and attaching to its stdin/out to record updates. Possibly also doing periodic grabs of the console buffer in case that app writes to the console directly.

    I'm assuming that the outer GUI app does all the rendering, and passes through all keyboard and mouse input. It would have to at least monitor keyboard input because it needs that for shortcuts like ctrl-s and ctrl-w.

    Given all that, it should be simple to have a "any key has been pressed" pass-through handler additionally tell the cursor to immediately render on and reset its timer. Same as the system console does when you're viewing cmd.exe through one.

     
  • Tartley

    Tartley - 2009-09-24

    +1 to fix this issue.

    For the record, it bugs me when I can't see my cursor while moving around with arrow keys. Many thanks!

     
  • Marko Bozikovic

    Marko Bozikovic - 2010-02-10
    • priority: 5 --> 4
     
  • Marko Bozikovic

    Marko Bozikovic - 2010-02-10

    Scott,

    I can try to implement cursor animation reset on each keypress. We'll see how it looks.

    --
    Marko

     

Log in to post a comment.