Previous Topic: set alternate to Command--Set Alternate Output File (Cmdlet)Next Topic: set result display on/off Command--Turn Automatic Result Display On or Off (Cmdlet)


set console Command--Suppress Console Output (Cmdlet)

This command (cmdlet) is used to suppress any output to stdout which is the console in interactive mode generated by ?, ??, qout(), or qqout(). Typically used with the set alternate command when writing to a file.

The command has the following syntax:

set console {on|off}
on

Writes output to stdout.

off

Suppresses console output.

Example

Suppress console output and write numbers 1 through 10 to output.txt:

set console off
set alternate to output.txt
for(i=1; i<11; i++)
{
    ? i
}
set alternate to
set console on

See also:

set alternate to Command--Set Alternate Output File (Cmdlet)