Table of Contents

CliCommand Class

Github Link

 namespace lc::ui::widgets 

Add Command


Description

Add and register a new command to the command line with the given lua callback. The command is enabled on adding. Returns false if command name already exists.

Examples


Write to Command Line


Description

Write a message to the command line.

 message("Text") 

function actually calls this function to print a message to the clicommand.

Examples


Run Command


Description

Run the command i.e. run the lua callback corresponding to the given command. Dosen't do anything if command is not present or disabled.

Examples


Enable Command


Description

Enable the given command. Dosen't do anything if command dosen't exist.

Examples


Disable Command


Description

Disables the given command. Dosen't do anything if command dosen't exist.

Examples


Is Command Enabled


Description

Returns a boolean indicating whether the command is enabled or disabled.

Examples


Available Commands


Description

Returns a list of all available command names.

Examples


Get Commands History


Description

Returns a list of all commands that have been entered since program started.

Examples


Clear CliCommand Output


Description

Clear the cli command console. Can also be accessed by using command “CLEAR” in the command line.

Examples