Re: Is there a way to make 'wish' read standard input?
- From: "Donal K. Fellows" <donal.k.fellows@xxxxxxxxx>
- Date: 28 Nov 2006 06:16:15 -0800
suchenwi wrote:
Easy - pedestrianly: at the end of your script, add:
while 1 {
puts -nonewline "% "; flush stdout
gets stdin line
catch $line res
puts $res
}
You need to use something a bit more complex than that, since you need
to write an event-oriented version so that that the event-loop stays
fresh. Many more details at http://wiki.tcl.tk/1968
Donal.
.
- References:
- Is there a way to make 'wish' read standard input?
- From: tclin1998@xxxxxxxxx
- Re: Is there a way to make 'wish' read standard input?
- From: Aric Bills
- Re: Is there a way to make 'wish' read standard input?
- From: tclin1998@xxxxxxxxx
- Re: Is there a way to make 'wish' read standard input?
- From: suchenwi
- Is there a way to make 'wish' read standard input?
- Prev by Date: Re: Is there a way to make 'wish' read standard input?
- Next by Date: Re: Is there a way to make 'wish' read standard input?
- Previous by thread: Re: Is there a way to make 'wish' read standard input?
- Next by thread: Re: Is there a way to make 'wish' read standard input?
- Index(es):
Relevant Pages
|