Re: Is there a way to make 'wish' read standard input?




Aric Bills wrote:


If that's the case, and if you're developing for Windows or OS X, your
script can call [console show], which will pop up the interactive
console.

This one reads commands, but not stdin. A [gets stdin] makes the
console hanging forever. A look in the Tk sources shows that stdout and
stderr are connected to the console, whereas stdin is not. Is there a
special reason for this, btw?

I am also interrested in a way to read stdin in wish


Eckhard

.



Relevant Pages

  • Re: Anyone know how to do a "timed program" with mplayer?
    ... so it reads for commands from stdin. ... > simple script which sleeps for 1:30 and then prints whatever mplayer's ... killall in a sample script. ...
    (Debian-User)
  • Re: why does this (windows) "tail" program not respond to the mouse?
    ... # redirect stderr to see debugging messages ... some syntax issue with the::console and the 2 in the redirection ... fconfigure stdin -blocking 0 ... global num ...
    (comp.lang.tcl)
  • Re: Redirecting stdin to a file requiring parameters
    ... Pseudo-terminal will not be allocated because stdin is not a terminal. ... /dev/stdin is forced to spring into existence to create the pipe, ... script contains commands that read from stdin, ... it seems that if the script contains commands that read ...
    (comp.unix.shell)
  • Re: How to do "press any key to continue"?
    ... On windows, that's a console setting. ... Even with 'fconfigure stdin -buffering none', ... I could have sworn a raw/cooked switch for the console channel driver has come up in discussions before. ...
    (comp.lang.tcl)
  • Re: User input via console
    ... When using StdIn the characters typed by the user aren't echoed to the ... Is that by design? ... > Jeff wrote: ... >> I need to get user input from the console, ...
    (microsoft.public.scripting.vbscript)