Guest User

ovr

a guest
Jun 13th, 2017
102
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.49 KB | None | 0 0
  1. oldYield = _G.coroutine.yield
  2. _G.coroutine.yield = function(str)
  3.   local dat = {oldYield(str)}
  4.   if str == "mouse_click" then
  5.     dat[3] = dat[3]-9
  6.     dat[4] = dat[4]-3
  7.   end
  8.   return table.unpack(dat)
  9. end
  10.  
  11. term.setBackgroundColor(colors.gray)
  12. term.clear()
  13. print("Compat Layer for Increased Screen Res")
  14. x,y = term.getSize()
  15. y2 = y/2
  16. y2 = y2-9
  17.  
  18. x2 =  x/2
  19. x2 = x2-25
  20. myWin = window.create(term.native(),x2,y2,51,19,true)
  21. term.redirect(myWin)
  22. os.run({},"/rom/programs/shell")
Advertisement
Add Comment
Please, Sign In to add comment