Virata manual

display

Prints something to the screen.

What we have

  • expressions, strings, and macros substituted first

Coming later

  • display with a format, such as %9.2f

You may shorten it to di.

How you write it

display expression   |   display "text `local'"

Square brackets mean optional. A vertical bar means choose one.

What it does

display 2 + 2 prints 4. display "done" prints the word. Mostly used inside do-files to show progress or to check what a macro currently holds.

Anything in backticks or after a $ is filled in first, so display "controls: $controls" shows the contents rather than the name.

Try it

. display 2 + 2
4
. display "done"
done

Nearby

set log help manual recipe local