SetStdioWindowOptions

int SetStdioWindowOptions (int maxNumLines, int bringToFrontWhenModified, int showLineNumbers);

Purpose

Sets the current value of the following Standard Input/Output window options:

Parameters

Input
Name Type Description
maxNumLines integer Maximum number of lines you can store in the Standard Input/Output window. If this amount is exceeded, lines are discarded from the top.

If the Standard I/O port is set to HOST_SYSTEM_STDIO, this value is not used.

The default value is 10,000.

Valid range: 100 to 1,000,000
bringToFrontWhenModified integer Indicates whether to bring the Standard Input/Output window to the front each time you add a string or character to the window.

The default value is 1.

1—Yes
0—No
showLineNumbers integer Indicates whether to show line numbers in the Standard Input/Output window.

If the Standard I/O port is set to HOST_SYSTEM_STDIO, this value is not used. Line numbers are never shown in a console window.

The default value is 0.

1—Yes
0—No

Return Value

Name Type Description
status integer Indicates whether the function succeeded.

Code Description
0 Success.
-1 Maximum number of lines is not within the valid range.