SET CONSOLE

From Lianjapedia
Jump to: navigation, search

Purpose

Turn the screen display on or off

Syntax

SET CONSOLE ON | OFF | (<expL>)

See Also

SET ALTERNATE, SET PRINT, SET PRINTER

Description

If SET CONSOLE is OFF, no output is displayed on the screen. By default, CONSOLE is ON.

Example

//
// output text to a file then print it
//
set printer to barry.txt
set print on
set console off
? "hello world"
set print off
set printer to
set console on
Lianja.printFile("printername", "barry.txt")
//
// open the printer port directly
//
set printer to com2:
set print on
set console off
? "hello world"
set print off
set printer to
set console on
//
// spool to default printer
//
// specify the default printer
set printer to name "usb001"
// spool into a temporary file
set printer to \\spooler 
set print on
set console off
? "hello world"
set console on
// send the temporary file to the
// default printer and open a new one
set print off