DKL9 GitList
Repositories
DKL9 home
memoire
Code
Commits
Branches
Tags
Search
Tree:
3949c09
Branches
Tags
master
memoire
src
actions.lua
Move Lua source code into src/ directory
John Smith
commited
3949c09
at 2023-133 18:56:28
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