4DOS Help Topic: ECHOS
Purpose: Display a message without a trailing carriage return and line
feed.
Format: ECHOS message
message: Text to display.
See also: ECHO, ECHOERR, ECHOSERR, SCREEN, SCRPUT, TEXT, and VSCRPUT.
Usage
ECHOS is useful for text output when you don't want to add a carriage return
and line feed at the end of the line. For example, you can use ECHOS when
you need to redirect control sequences to your printer; this example sends
the sequence Esc P to the printer on LPT1:
c:\> echos eP > lpt1:
To include the command separator character [^] or the redirection and piping
symbols [<>|] in an ECHOS message, enclose them in quotes (see Argument
Quoting) or precede them with the escape character.
If you want to embed a carriage return or other control character in the
message, you can use the @CHAR function or an escape sequence. For
instance, you might wish to print a carriage return at the start of your
message to move the cursor to the start of the line, so you can overwrite
text already on the screen. Use @CHAR[13] or %=r to print a carriage
return:
do i = 100 to 0 by -1
echos %=r%i` `
delay /m 1
enddo
ECHOS does not translate or modify the message text. For example, carriage
return characters are not translated to CR/LF pairs. ECHOS sends only the
characters you specify. The only character you cannot put into an ECHOS
message is the NUL character (ASCII 0).
To include the command separator character [^] or the redirection and piping
symbols [<>|] in an ECHOS message, enclose them in quotes (see Argument
Quoting) or precede them with the escape character.
Trailing spaces in the message are normally ignored. To display trailing
spaces, enclose them in back-quotes, as in the example above.
ECHOS can not be used to change or display the current command-echo state.
Use ECHO to control echoing of commands in a batch file or at the prompt. |
|