diff options
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()) |