AtPrompt Property

Returns true if A-Shell is at the command prompt.

Syntax

Application.AtPrompt

Return Value

A Boolean value indicating if A-Shell is at the command prompt and waiting for input. False is returned if an AlphaBASIC program, a command, or a command file is being executed. The value of the AtPrompt property is undefined if the A-Shell application has not been activated – for example with the Activate method.

Remarks

The AtPrompt property may be used to monitor the status of the A-Shell application, or to determine the exact behaviour of the Send and ExecCmd methods. If True is returned, then the Send method will execute the A-Shell command specified as character input, and the ExecCmd method will execute the specified commands immediately. Otherwise the Send character input will be queued and accessed the next time character input is required, and the ExecCmd method will execute the specified commands after the current command or program has completed.