Skip to content

Console Functions

Paul Squires edited this page Sep 19, 2026 · 1 revision

Home › Console Functions › Console Functions

Console Functions

Procedures that work with the console.

Description

These procedures provide ways to output text to the console, as well as control where and how text is output.

Configuring the Console

Statements that affect how text is displayed.

Cursor Color and Positioning

Procedures that move the cursor and change its color.

Writing Text to the Console

Procedures that output text to the console.

Configuring the Console

Cls

Clears the entire screen or text viewport.

Width

Sets or returns the number of rows and columns of the console display.

View Print

Sets the printable area of the console screen.

Cursor Color and Positioning

Color

Changes the foreground and background color of text to be written.

CsrLin

Returns the row position of the cursor.

Pos

Returns the column position of the cursor.

Locate

Sets the row and column position of the cursor and its visibility.

Screen (Console)

Gets the character or color attribute at a given location.

Writing Text to the Console

Print ? (Shortcut For 'Print')

Writes text to the console.

Print Using ? Using (Shortcut For 'Print Using')

Writes formatted text to the console.

Write

Writes a list of items to the console.

Spc

Skips a number of spaces when writing text.

Tab

Skips to a certain column when writing text.


Category: Console Functions


Reproduced from the FreeBASIC Wiki Manual under the GNU Free Documentation License 1.3 — with no Invariant Sections, no Front-Cover Texts and no Back-Cover Texts. Copyright © the FreeBASIC project and wiki contributors. See License.

Clone this wiki locally