Merge pull request #249 from Xertis/main

Added a clear console command
This commit is contained in:
MihailRis 2024-06-15 13:09:58 +03:00 committed by GitHub
commit 4d962e8349
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -13,6 +13,15 @@ function build_scheme(command)
return str
end
console.add_command(
"clear",
"Clears the console",
function ()
local document = Document.new("core:console")
document.log.text = ""
end
)
console.add_command(
"help name:str=''",
"Show help infomation for the specified command",