Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- oldYield = _G.coroutine.yield
- _G.coroutine.yield = function(str)
- local dat = {oldYield(str)}
- if str == "mouse_click" then
- dat[3] = dat[3]-9
- dat[4] = dat[4]-3
- end
- return table.unpack(dat)
- end
- term.setBackgroundColor(colors.gray)
- term.clear()
- term.setCursorPos(1,1)
- print("Compat Layer for Increased Screen Res")
- x,y = term.getSize()
- y2 = y/2
- y2 = y2-9
- x2 = x/2
- x2 = x2-25
- myWin = window.create(term.current(),x2,y2,51,19,true)
- term.redirect(myWin)
- os.run({},"/rom/programs/shell")
Add Comment
Please, Sign In to add comment