DKL9 GitList
Repositories
DKL9 home
memoire
Code
Commits
Branches
Tags
Search
Tree:
8b4c5d7
Branches
Tags
master
memoire
src
actions.lua
Implement image reference check
John Smith
commited
8b4c5d7
at 2023-151 10:40:16
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 IMG_PATTERN = "IMG%[([^%]]+)%]" local actions = {} for _, fname in ipairs({"addcards", "correction", "help", "imgrefcheck", "leeches", "query", "reviewtty", "statistics", "toggle", "vocalreview"}) do actions[fname:sub(1, 1)] = dofile(SRC_DIR .. fname .. ".lua") end return actions