forsyth20121205-174063a80cc13 years agoHistory
38 lines · 1.1 KB · Text
RawDownload
.TH SEND 9.SH NAMEsend \- send a value down a Tk channel.SH SYNOPSIS\f5send \fIchan\fP \fIstring\fP.SH DESCRIPTION.B Sendis the gateway from the Tk world into the Limbo world.It sends.I stringdown.IR chan ,which should previously have been named with a call to.B namechan(see.IR tk (2)).Tk channels are non blocking, so the call will return immediately,whether the message has been sent or not. If too many messageshave been queued on the.IR chan ,then the message will bediscarded, and a warning printed on the console..I Stringis not subject to interpretation by the usual Tk quoting rules..SH BUGS.I Stringis not subject to interpretation by the usual Tk quoting rules.This means, for example that:.EX	radiobutton .x -text X -variable x -value x	radiobutton .y -text Y -variable y -value y	button .z -text Submit {send chan submit [variable X]}.EEwill not work as expected. Instead, one must interrogate valuesdirectly in Limbo..PPThe specialised queued channels will be replaced by buffered channels in Limbo ina future edition of Inferno.