diff options
author | ubq323 <ubq323@ubq323.website> | 2022-08-05 01:35:59 +0100 |
---|---|---|
committer | ubq323 <ubq323@ubq323.website> | 2022-08-05 01:35:59 +0100 |
commit | 4b38497c78cb3da55a8d856c61e7cdd68f33b2e3 (patch) | |
tree | 9c8d26060ec786e3b371d6354184a746567fbd48 | |
parent | c7ac32a7f131bf010889265bfb94e709e1eda43a (diff) |
of
-rw-r--r-- | img/driver.lua | 6 |
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) |