Pause » History » Version 5
Per Amundsen, 02/16/2023 02:55 PM
1 | 1 | Per Amundsen | _Added in 2.9_ |
---|---|---|---|
2 | |||
3 | 3 | Per Amundsen | */pause [-m] <N>* |
4 | 1 | Per Amundsen | |
5 | Pauses the script for N seconds. |
||
6 | |||
7 | _The internal state cannot be guaranteed so use with caution._ |
||
8 | 3 | Per Amundsen | |
9 | *Switches* |
||
10 | |||
11 | 5 | Per Amundsen | table(ktable). |
12 | |*Switch*|*Description*| |
||
13 | | -m | Indicates N is milliseconds instead. | |
||
14 | 1 | Per Amundsen | |
15 | *Parameters* |
||
16 | |||
17 | 5 | Per Amundsen | table(ktable). |
18 | |*Parameter*|*Description*| |
||
19 | | <N> | The number of seconds to pause for. | |
||
20 | 1 | Per Amundsen | |
21 | *Example* |
||
22 | |||
23 | <pre> |
||
24 | alias changetopic { |
||
25 | echo -ag Topic before = $chan(#).topic |
||
26 | topic # New topic |
||
27 | pause 3 |
||
28 | 2 | Per Amundsen | echo -ag Topic after = $chan(#).topic |
29 | 1 | Per Amundsen | } |
30 | </pre> |