From 9eaa8ebe171a9cf0135dbe782a5d1301c8975410 Mon Sep 17 00:00:00 2001 From: TorchedSammy <38820196+TorchedSammy@users.noreply.github.com> Date: Sun, 18 Sep 2022 08:30:45 -0400 Subject: [PATCH] feat: add clear and exec command --- nature/commands/clear.lua | 7 +++++++ nature/commands/exec.lua | 5 +++++ 2 files changed, 12 insertions(+) create mode 100644 nature/commands/clear.lua create mode 100644 nature/commands/exec.lua diff --git a/nature/commands/clear.lua b/nature/commands/clear.lua new file mode 100644 index 0000000..68aa197 --- /dev/null +++ b/nature/commands/clear.lua @@ -0,0 +1,7 @@ +local ansikit = require 'ansikit' +local commander = require 'commander' + +commander.register('clear', function() + ansikit.clear(true) + ansikit.cursorTo(0, 0) +end) diff --git a/nature/commands/exec.lua b/nature/commands/exec.lua new file mode 100644 index 0000000..d279e31 --- /dev/null +++ b/nature/commands/exec.lua @@ -0,0 +1,5 @@ +local commander = require 'commander' + +commander.register('exec', function(args) + hilbish.exec(args[1]) +end)