aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to '')
-rwxr-xr-xtelem.lua6
1 files changed, 5 insertions, 1 deletions
diff --git a/telem.lua b/telem.lua
index ddf967a..991544b 100755
--- a/telem.lua
+++ b/telem.lua
@@ -23,6 +23,10 @@ end
if not _EDITOR then
_EDITOR = "nano"
end
+_PAGER = os.getenv("PAGER")
+if not _PAGER then
+ _PAGER = "less"
+end
_COLOURS = {
red=31,
@@ -585,7 +589,7 @@ end
function do_type_whole()
local filename = os.tmpname()
do_type_savefile(filename)
- os.execute("less " .. filename)
+ os.execute(_PAGER .. " " .. filename)
file.delete(filename)
end