From 0974b8841550a12bd1996171031b6bde911fa5d2 Mon Sep 17 00:00:00 2001 From: ubq323 Date: Sat, 6 Aug 2022 23:11:40 +0100 Subject: img --- img/driver.lua | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'img') 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()) -- cgit v1.2.3