Skip to main content

Built-in Commands

qASIC includes many built-in methods. For more information about any of them, try running help [command name] in the console.

Console commands

These are commands that are added by default or when calling AddBuiltInCommands on the command list.

NameAliasesDescription
clearcls, clrClears the console.
echoprintLoggs the provided message to the console.
exitquitCloses the application.
helloworldhelloLogs a test message to the console.
helpnoneDisplays a list of all available commands or a detailed description of a command.
remotenoneShows information about the remote inspector server.
sleepwaitDoes nothing for the specified amount of time.
unsticknoneUnsticks all logs marked as sticky.
versioninfo, aboutDisplays current project version.

All of these commands can be configured in the console configuration file.

# General template for every built-in command
--- commandList.commandConfig.clear ---
commandName = clear
aliases|
* cls
* clr

description = Clears the console.
detailedDescription =
---

# On top of the above, some commands have additional things you can configure
--- commandList.commandConfig.hello ---
# The message that will be logged when running the command
helloMessage = Hello World :)
# The tag of the logged message
tag =
# The color of the logged message
color = rgb(0, 255, 0)
---

--- commandList.commandConfig.help ---
# Whenever to split commands into multiple pages
multiplePages = True
# The amount of commands displayed on a single page
pageCommandLimit = 16
# Defines if it can display information about a command
allowDetailedDescription = True
---

Option commands

These are commands that are added when calling AddBuildInOptionsCommands on the command list.

NameAliasesDescription
applyoptionsapplysettings, optionsapply, settingsapplySaves options to disk.
changeoptionsetoption, changesetting, setsettingChanges the value of an option.
optionslistsettingslist, listoptions, listsettingsShows a list of options.
revertoptionsrevertsettings, optionsrevert, settingsrevertLoads options from disk while discarding any unsaved changes.