Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 381b324ee1117b2f3cc976fff621a241286fbc551556dc933c38c015afa828a2
Ticket: 1d0618000674abdf701021d69eaa858cbccf14a4
channel reads prematurely from stdin on Windows
User & Date: apnadkarni on 2025-11-27 06:55:37
Changes

  1. icomment:
    > 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.
    
    This indeed would be an issue that I'm not sure can be fixed. At the channel driver level, there is no knowledge of characters vs lines, encoding etc. or whether the application is doing character-by-character reads or gets. That's all within the core channel infrastructure so the driver generates notifications whenever there is data available, irrespective of whether it is a complete line or not.
    
    > I guess the way forward then is to close this ticket, and for Python to rethink its API for interfacing with Tcl.
    
    Probably. If that does not work out, we can explore further on this path.
    
  2. login: "apnadkarni"
  3. mimetype: "text/x-markdown"