ECHO
echo {on | off}
Function
Turn the command echo on or off.
Parameters
on |
Turn the echo on. |
|
|
off |
Turn the echo off. |
|
|
|
With no parameters toggle the state of the echo, e.g. ON becomes OFF. |
|
|
Examples
echo
echo off
Notes
At program start-up the echo is off.
If ECHO is switched on and the TRACE_MACROS variable is set to yes then the output of all tracing capabilities is also displayed in the message area. Find out more about tracing in the Debugging Section of the configuration options.
To improve readability echo returns not only the executed line but also the name of the command file and the line number
Command >do testc
<testc.cmd...1> {
<testc.cmd...2> numeric x
<testc.cmd...4> x=1
<testc.cmd...5> Label 1
<testc.cmd...6> x=x+1
<testc.cmd...7> if x<3 : goto 1
<testc.cmd...6> x=x+1
<testc.cmd...7> if x<3 : goto 1
<testc.cmd...8> }
Command >
where the file is :
{
numeric x
x=1
Label 1
x=x+1
if x<3 : goto 1
}
See also