Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 7613d91eb20f57405fc48a41105ef06f64a536a6
Ticket: 462317ffffffffffffffffffffffffffffffffff
Notification when there's no data
User & Date: andreas_kupries on 2001-09-19 00:08:59
Changes

  1. icomment:
    Logged In: YES 
    user_id=75003
    
    Huh, complicated script ... I haven't done much expect so I 
    hope this question is not stupid: do you believe it is 
    possible to use [after] instead of managing the timeouts on 
    your own ? (This is an aside question hopefully not 
    connected to the problem).
    
    As for looking into the Tcl buffers there 
    is 'Tcl_Inputbuffered' returning the number of bytes of 
    input currently buffered in the common internal buffer of a 
    channel. There is also 'Tcl_InputBlocked' which returns 1 
    if input is blocked on this channel, 0 otherwise. Last we 
    have 'Tcl_Eof' which returns 1 if the channel is at EOF, 0 
    otherwise. Beyond that you have to query the datastructures 
    directly.
    
    Regarding "The channel is the pipe to a child of
    expect, and as far as I know, there's
    no control at the script level about
    blocking that.", I assume this to mean that we have no 
    direct access to the channel allowing us to perform 
    [fconfigure $channel -blocking 0].
    
    
    
  2. login: "andreas_kupries"
  3. mimetype: "text/plain"
  4. username: "andreas_kupries"