Replace showimg with imgcat for image display
John Smith

John Smith commited on 2022-23 08:05:32
Showing 1 changed files, with 3 additions and 1 deletions.

... ...
@@ -2,6 +2,8 @@
2 2
     the main user interface for memoire
3 3
 ]]
4 4
 
5
+local SRC_DIR = arg[0]:match("^.*/")
6
+
5 7
 local Prompt = dofile "prompt.lua"
6 8
 local review = dofile "review.lua"
7 9
 local loader = dofile "loader.lua"
... ...
@@ -46,7 +48,7 @@ local function imgify(text)
46 48
     local DISPIMG = function(path)
47 49
         if path and #path > 0 then
48 50
             io.write("\n")
49
-            os.execute(string.format("showimg %s", path))
51
+            os.execute(string.format("imgcat %s", path))
50 52
         end
51 53
     end
52 54
     local le = 1
53 55