Samuel Dionne-Riel | dc0d17c | 2022-08-18 15:44:04 -0400 | [diff] [blame] | 1 | .. SPDX-License-Identifier: GPL-2.0-or-later: |
| 2 | |
| 3 | pause command |
| 4 | ============= |
| 5 | |
| 6 | Synopsis |
| 7 | -------- |
| 8 | |
| 9 | :: |
| 10 | |
| 11 | pause [prompt] |
| 12 | |
| 13 | |
| 14 | Description |
| 15 | ----------- |
| 16 | |
| 17 | The pause command delays execution waiting for any user input. |
| 18 | |
| 19 | It can accept a single parameter to change the prompt message. |
| 20 | |
| 21 | Examples |
| 22 | -------- |
| 23 | |
| 24 | Using with the default prompt: |
| 25 | |
| 26 | :: |
| 27 | |
| 28 | => pause |
| 29 | Press any key to continue... |
| 30 | |
| 31 | |
| 32 | Using with a custom prompt: |
| 33 | |
| 34 | :: |
| 35 | |
| 36 | => pause 'Prompt for pause...' |
| 37 | Prompt for pause... |
| 38 | |
| 39 | Note 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 | |
| 49 | Return value |
| 50 | ------------ |
| 51 | |
| 52 | The return value $? is always set to 0 (true), unless invoked in an invalid |
| 53 | manner. |