MAINSAIL Language Manual, Section 48.25

previous   next   top   contents   index   framed top   this page unframed


48.25. ttyWrite

Figure 48–25. ttyWrite (GENERIC)
PROCEDURE   ttyWrite    (REPEATABLE STRING v);

PROCEDURE   ttyWrite    (REPEATABLE BOOLEAN v);

PROCEDURE   ttyWrite    (REPEATABLE INTEGER v);

PROCEDURE   ttyWrite    (REPEATABLE BITS v);

PROCEDURE   ttyWrite    (REPEATABLE REAL v);

PROCEDURE   ttyWrite    (REPEATABLE LONG INTEGER v);

PROCEDURE   ttyWrite    (REPEATABLE LONG BITS v);

PROCEDURE   ttyWrite    (REPEATABLE LONG REAL v);

ttyWrite converts its argument to a STRING representation if it is not a STRING, and then writes the STRING to the file TTY. The conversions performed are the same as performed by the system PROCEDURE write.

Example 48–26. Use of ttyWrite
ttyWrite(eol & "i and j are ",i," and ",j,"." & eol)

If i = 10 and j = 11, the following is written to TTY on a new line:

i and j are 10 and 11.


previous   next   top   contents   index   framed top   this page unframed

MAINSAIL Language Manual, Section 48.25