From 4b38497c78cb3da55a8d856c61e7cdd68f33b2e3 Mon Sep 17 00:00:00 2001 From: ubq323 Date: Fri, 5 Aug 2022 01:35:59 +0100 Subject: of --- img/driver.lua | 6 +++--- 1 file 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) -- cgit v1.2.3