justin = { main feed , music , code , askjf , pubkey };
Ask Justin Frankel
No reasonable question unanswered since 2009!

Suggested topics: programming, music, sleep, coffee, etc.

Note: please do not ask questions about REAPER features, bugs or scheduling, use the forums instead.


Name: Ask: Human (enter yes):
[back to index] | [unreplied] | [replied] | [recent comments] | [all]

Question: Easiest way to disable cursor blinking in curses editor? It might be useful when you have more than one context open just to indicate visually where the focus is etc.
Asked by Gio (94.70.10.x) on March 10 2019, 3:05am
Reply on March 10 2019, 4:54am (edited at March 10 2019, 4:56am):
    In curses_win32.cpp, change the line:
          ctx->cursor_state = (ctx->cursor_state+1)%CURSOR_BLINK_TIMER_ZEROEVERY;
    
    to be
          ctx->cursor_state = 1;
    
    Or maybe we should change it to be:
          ctx->cursor_state = (ctx->cursor_state+1)%CURSOR_BLINK_TIMER_ZEROEVERY;
          if (!ctx->cursor_state && GetFocus() != hwnd) ctx->cursor_state=1;
    


Comments:
  • Posted by Gio (94.70.10.x) on March 10 2019, 6:14am:
    Thank you Justin, that was really handy. I went with the last option, it's easy to apply too.

  • Posted by Justin on March 10 2019, 2:19pm:
    Adding the last one to our repository too :)


Comment:
    Your Name:   -- Site Owner's Name:  (for human-verification)

    Comment:    

    
  
[back to index] | [unreplied] | [replied] | [recent comments] | [all]
Copyright 2019 Justin Frankel. | RSS