Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: edaa5c28c7c218c3ea6dea741339e4cda9555b302e07b2ba0c49df8754d1f821
Ticket: 1d0618000674abdf701021d69eaa858cbccf14a4
channel reads prematurely from stdin on Windows
User & Date: anonymous on 2025-11-26 06:11:00
Changes

  1. icomment:
    In char mode, the program works correctly, except if I press Esc, which causes StdinCallback to be called though no input is available. This may be a minor issue.
    
    In line mode, I noticed that the StdinCallback callback gets called immediately when I press the first key. Then the program sits in read() until enter is pressed.
    
    I think your original assessment was correct, and it is just not technically feasible on Windows. I have tried a number of other things but was not able to get this to work reliably.
    
    I guess the way forward then is to close this ticket, and for Python to rethink its API for interfacing with Tcl.
    
  2. login: "anonymous"
  3. mimetype: "text/plain"