diff options
-rwxr-xr-x | telem.lua | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -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 |