2021-03-20 00:28:22 +00:00
|
|
|
-- Default Hilbish config
|
2021-03-21 07:05:39 +00:00
|
|
|
ansikit = require 'ansikit'
|
2021-03-30 23:48:37 +00:00
|
|
|
bait = require 'bait'
|
2021-03-20 22:51:51 +00:00
|
|
|
|
2021-03-30 23:48:37 +00:00
|
|
|
function doPrompt(fail)
|
|
|
|
prompt(ansikit.text(
|
|
|
|
'{blue}%u {cyan}%d ' .. (fail and '{red}' or '{green}') .. '∆{reset} '
|
|
|
|
))
|
|
|
|
end
|
|
|
|
|
|
|
|
doPrompt()
|
|
|
|
|
|
|
|
bait.catch('command.fail', function()
|
|
|
|
doPrompt(true)
|
|
|
|
end)
|
|
|
|
|
|
|
|
bait.catch('command.success', function()
|
|
|
|
doPrompt()
|
|
|
|
end)
|
2021-03-20 22:51:51 +00:00
|
|
|
|
|
|
|
--hook("tab complete", function ())
|