summaryrefslogtreecommitdiff
path: root/img
diff options
context:
space:
mode:
Diffstat (limited to 'img')
-rw-r--r--img/driver.lua6
1 files changed, 3 insertions, 3 deletions
diff --git a/img/driver.lua b/img/driver.lua
index b7a4cb9..2a7c4ca 100644
--- a/img/driver.lua
+++ b/img/driver.lua
@@ -4,9 +4,9 @@ local load_pnm = require("load_pnm").load
local shitty_disp = require("shitty_disp").disp
local perr = require("util").perr
-local file,err = fs.open("/finger.pnm","r")
-perr(err,"fs.open")
-local ff = file.readAll()
+local file,err = io.open("/finger.pnm")
+perr(err,"io.open")
+local ff = file:read("a")
local img = load_pnm(ff)
print(img)
shitty_disp(term.current(),img,1,1,20,20,1,1)