Purpose:Display a message to standard output (stdout) without a trailing carriage return / line feed

 

Format:ECHOS message

 

messageText to display.

 

See also: ECHO, ECHOERR, ECHOSERR, ECHOX, ECHOXERR, SCREEN, SCRPUT, TEXT, and VSCRPUT.

 

Usage:

 

ECHOS, like ECHO in message display mode, parses, expands, and displays message on stdout. However, any display sent to stdout after message has been displayed will continue on the same line.

 

Display rules

 

The first space after the command name is ignored.

Trailing spaces in message are ignored.

Functions and variables not enclosed between back quotes are evaluated.

To include special characters, .e.g, < | >, in message, enclose them in double quotes or back quotes (see Parameter Quoting)  or precede them with the escape character, or use the /X option of the SETDOS command.

To display % you may alternately use two % marks for each one to be displayed, e.g., %%

To display trailing spaces, either enclose them in back quotes, or append a pair of back quotes behind them, e.g., echo trailers   ``

The ASCII NUL character cannot be included in message.

ECHOS keeps the cursor on the same line, thus permitting building a line of display using multiple commands

 

ECHOS is useful for text output when you don't want to add a carriage return / linefeed pair at the end of the line. This is useful if your whole line of text requires more than one command to build, and also for controlling character devices.