Lines Matching +full:read +full:- +full:delay
1 \ Copyright (c) 2008-2015 Devin Teske <dteske@FreeBSD.org>
26 marker task-delay.4th
28 vocabulary delay-processing
29 only forth also delay-processing definitions
31 2 constant delay_default \ Default delay (in seconds)
32 3 constant etx_key \ End-of-Text character produced by Ctrl+C
33 13 constant enter_key \ Carriage-Return character produce by ENTER
36 variable delay_tstart \ state variable used for delay timing
37 variable delay_delay \ determined configurable delay duration
41 only forth definitions also delay-processing
43 : delay_execute ( -- )
46 s" delay_command" getenv dup -1 = if
50 \ read custom time-duration (if set)
51 s" loader_delay" getenv dup -1 = if
52 drop \ no custom duration (remove dup'd bunk -1)
53 delay_default \ use default setting (replacing bunk -1)
64 0 delay_cancelled ! \ boolean flag indicating user-cancelled event
66 false delay_showdots ! \ reset to zero and read from environment
67 s" delay_showdots" getenv dup -1 <> if
87 -1 delay_delay ! \ break loop
90 -1 delay_delay ! \ break loop
91 -1 delay_cancelled ! \ set cancelled flag
96 \ waiting for either ENTER or Ctrl-C/Escape to be pressed
99 seconds delay_tstart @ - delay_delay @ >
101 -1 \ break loop
105 \ if we were throwing up dots, throw up a line-break
110 \ did the user press either Ctrl-C or Escape?