blob: c79e399c02043f19398dcf378b12cd467f8c8437 [file] [log] [blame]
Samuel Dionne-Riele69e1f12022-08-18 15:44:04 -04001.. SPDX-License-Identifier: GPL-2.0-or-later:
2
3pause command
4=============
5
6Synopsis
7--------
8
9::
10
11 pause [prompt]
12
13
14Description
15-----------
16
17The pause command delays execution waiting for any user input.
18
19It can accept a single parameter to change the prompt message.
20
21Examples
22--------
23
24Using with the default prompt:
25
26::
27
28 => pause
29 Press any key to continue...
30
31
32Using with a custom prompt:
33
34::
35
36 => pause 'Prompt for pause...'
37 Prompt for pause...
38
39Note that complex prompts require proper quoting:
40
41::
42
43 => pause Prompt for pause...
44 pause - delay until user input
45
46 Usage:
47 pause [prompt] - Wait until users presses any key. [prompt] can be used to customize the message.
48
49Return value
50------------
51
52The return value $? is always set to 0 (true), unless invoked in an invalid
53manner.