diff options
author | ubq323 <ubq323@ubq323.website> | 2022-08-06 23:11:40 +0100 |
---|---|---|
committer | ubq323 <ubq323@ubq323.website> | 2022-08-06 23:11:40 +0100 |
commit | 0974b8841550a12bd1996171031b6bde911fa5d2 (patch) | |
tree | 99f71a1d5af7b7eb7db440d9e3691661637e183c /img | |
parent | df84cb8ccdedce4e81312fbefecbedd96c1d19ee (diff) |
img
Diffstat (limited to 'img')
-rw-r--r-- | img/driver.lua | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/img/driver.lua b/img/driver.lua index b274646..8b12ac7 100644 --- a/img/driver.lua +++ b/img/driver.lua @@ -8,8 +8,9 @@ local file,err = io.open(arg[1],"rb") perr(err,"io.open") local ff = file:read("a") local img = load_pnm(ff) -term.clear() -better_disp.disp(term.current(),img,1,1) +local W = window.create(term.current(),20,10,20,20) +W.clear() +better_disp.disp(W,img,1,1) os.pullEvent("key") --shitty_disp.reset_palette(term.current()) |