Console

rconsoleclear

Clears the current Windows console screen buffer when a console window exists.

Syntax

rconsoleclear()
Aliases consoleclear

Description

Clears the current Windows console screen buffer when a console window exists. If no console window exists, the call returns without doing anything.

Call it without parameters. The function reads the needed context from the current runtime state.

It does not return data. Treat the call as an action and handle errors around the call site when needed.

Example

Clear the current console screen when a console window exists.

rconsolecreate()
rconsoleprint("Preparing output...")
rconsoleclear()