aboutsummaryrefslogtreecommitdiff
path: root/telem.lua
diff options
context:
space:
mode:
Diffstat (limited to '')
-rwxr-xr-xtelem.lua11
1 files changed, 9 insertions, 2 deletions
diff --git a/telem.lua b/telem.lua
index 56379ca..29ef3f8 100755
--- a/telem.lua
+++ b/telem.lua
@@ -13,10 +13,17 @@ table = require("table")
unistd = require("posix.unistd")
_BBS_ROOT = "/var/bbs/"
-_EDITOR = os.getenv("EDITOR")
+_EDITOR = os.getenv("BBSED")
if not _EDITOR then
- _EDITOR = "/usr/bin/vim.tiny"
+ _EDITOR = os.getenv("VISUAL")
end
+if not _EDITOR then
+ _EDITOR = os.getenv("EDITOR")
+end
+if not _EDITOR then
+ _EDITOR = "nano"
+end
+
_COLOURS = {
red=31,
green=32,