feat: add clear and exec command

builtins
TorchedSammy 2022-09-18 08:30:45 -04:00
parent e5c8e5eaff
commit 9eaa8ebe17
Signed by: sammyette
GPG Key ID: 904FC49417B44DCD
2 changed files with 12 additions and 0 deletions

View File

@ -0,0 +1,7 @@
local ansikit = require 'ansikit'
local commander = require 'commander'
commander.register('clear', function()
ansikit.clear(true)
ansikit.cursorTo(0, 0)
end)

View File

@ -0,0 +1,5 @@
local commander = require 'commander'
commander.register('exec', function(args)
hilbish.exec(args[1])
end)