simon-git: putty (main): Simon Tatham

Commits to Tartarus hosted VCS tartarus-commits at lists.tartarus.org
Thu Apr 24 11:35:11 BST 2025


TL;DR:
  c71cc50e Windows: cope if caret blinking is disabled.

Repository:     https://git.tartarus.org/simon/putty.git
On the web:     https://git.tartarus.org/?p=simon/putty.git
Branch updated: main
Committer:      Simon Tatham <anakin at pobox.com>
Date:           2025-04-24 11:35:11

commit c71cc50e52aca439185c09ada7788c3f226d17a4
web diff https://git.tartarus.org/?p=simon/putty.git;a=commitdiff;h=c71cc50e52aca439185c09ada7788c3f226d17a4;hp=429478f914201098ae13cd79e29dc1dc8ecd0aca
Author: Simon Tatham <anakin at pobox.com>
Date:   Thu Apr 24 11:30:52 2025 +0100

    Windows: cope if caret blinking is disabled.
    
    On Windows, when a blinking cursor is enabled, PuTTY uses the system
    default blink time from GetCaretBlinkTime(), which can be configured in
    Control Panel.
    
    Control Panel allows caret blinking to be disabled entirely, in which
    case GetCaretBlinkTime() returns INFINITE. PuTTY wasn't handling this
    case; if cursor blinking was enabled in PuTTY but disabled at the system
    level, the terminal window would hang, blinking the cursor madly.

 doc/config.but             |  4 +++-
 terminal/terminal.c        |  5 +++--
 windows/CMakeLists.txt     |  1 +
 windows/platform.h         |  4 +++-
 windows/utils/blink_time.c | 21 +++++++++++++++++++++
 5 files changed, 31 insertions(+), 4 deletions(-)



More information about the tartarus-commits mailing list