![]() |
||
| Home | SwiftForth Archive | SwiftX Archive | |

Kenneth Butterfield (02.05. 15:43):
> : q1 1000 ms key? key emit ;
> : q2 10000 ms key? if pad 10 accept pad swap dump then ;
>
> q1 (immediatly type 1) returns 1
> q2 (immediately type 1234) returns 234
> q2 (wait 20 seconds type 1234) returns 1234
>
> Where does the leading character go?
I'd guess that that once key? has seen the 1 keypress, it's not
available to accept any more, as this event has already been handled and
forgotten.
s.
-- Stefan Schmiedl +-------------------------------+----------------------------------------+ |Approximity GmbH | EDV-Beratung Schmiedl | |http://www.approximity.com | Am Bräuweiher 4, 93499 Zandt, Germany | |mailto:stefan_at_approximity.com | Tel. (09944) 3068-98, Fax -97 | +-------------------------------+----------------------------------------+ ---------------------------------------------------------------------- sftalk_at_forth.com The SwiftForth programming discussion email list To unsubscribe, send subject "unsubscribe" to sftalk-request_at_forth.com For list command help, send subject "help" to sftalk-request_at_forth.com Message archives are located at http://www.forth.com/archive/sftalk ---------------------------------------------------------------------- This list is a forum for SwiftForth users. For product support and bug reports, please send email to support_at_forth.com ----------------------------------------------------------------------Received on Mon May 02 2005 - 16:43:50 PDT
This archive was generated by hypermail 2.2.0 : Wed Nov 19 2008 - 03:04:25 PST