diff --git a/res/scripts/stdcmd.lua b/res/scripts/stdcmd.lua index 0db4d208..f9546284 100644 --- a/res/scripts/stdcmd.lua +++ b/res/scripts/stdcmd.lua @@ -13,6 +13,15 @@ function build_scheme(command) return str end +console.add_command( + "clear", + "Clears the console", + function () + document = Document.new("core:console") + document.log.text = "" + end +) + console.add_command( "help name:str=''", "Show help infomation for the specified command",