Specifications

Version 2.0
175
pause
Usage
pause [-q]
Description
The pause command prints a message to the display and then suspends script file
execution and waits for keyboard input. Pressing any key resumes execution, except
for q or Q. If q or Q is pressed, script processing terminates; otherwise execution
continues with the next line after the pause command.
The pause command is available only in scripts. Switch –q can hide the message and
it’s optional.
Examples
Following script is a sample of 'pause' command:
fs0:\> type pause.nsh
#
# Example script for 'pause' command
#
echo pause.nsh begin..
date
time
pause
echo pause.nsh done.
To execute the script with echo on:
fs0:\> pause.nsh
+pause.nsh> echo pause.nsh begin..
pause.nsh begin..
+pause.nsh> date
06/19/2001
+pause.nsh> time
00:51:45
+pause.nsh> pause
Enter 'q' to quit, any other key to continue:
+pause.nsh> echo pause.nsh done.
pause.nsh done.
To execute the script with echo off:
fs0:\> echo -off
fs0:\> pause.nsh
pause.nsh begin..
06/19/2001
00:52:50
Enter 'q' to quit, any other key to continue: q
fs0:\>