DKL9 GitList
Repositories
DKL9 home
memoire
Code
Commits
Branches
Tags
Search
Tree:
254cab7
Branches
Tags
master
memoire
actions.lua
Split actions out into separate files
John Smith
commited
254cab7
at 2023-133 18:45:37
actions.lua
Blame
History
Raw
--[[ clears the terminal implementation may be platform-specific ]] function clear() -- ANSI io.write("\x1b[H\x1b[J") end --[[ check if standard input is a terminal ]] function isatty() local succ = os.execute("tty >/dev/null") return succ end local actions = {} for _, fname in ipairs({"addcards", "correction", "help", "leeches", "query", "reviewtty", "statistics", "toggle", "vocalreview"}) do actions[fname:sub(1, 1)] = dofile(SRC_DIR .. fname .. ".lua") end return actions