зеркало из
https://github.com/Hilbis/Hilbish
synced 2025-07-13 06:12:03 +00:00
feat: add clear and exec command
Этот коммит содержится в:
родитель
e5c8e5eaff
Коммит
9eaa8ebe17
7
nature/commands/clear.lua
Обычный файл
7
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)
|
5
nature/commands/exec.lua
Обычный файл
5
nature/commands/exec.lua
Обычный файл
@ -0,0 +1,5 @@
|
|||||||
|
local commander = require 'commander'
|
||||||
|
|
||||||
|
commander.register('exec', function(args)
|
||||||
|
hilbish.exec(args[1])
|
||||||
|
end)
|
Загрузка…
x
Ссылка в новой задаче
Block a user