Advertisement
Guest User

Untitled

a guest
Mar 8th, 2022
32
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.46 KB | None | 0 0
  1. local process = require "process"
  2. local term = require "term"
  3.  
  4. local function window(program, dx, dy, width, height)
  5. local _window = term.internal.open(dx, dy, width, height)
  6. term.bind(term.gpu(), _window)
  7. process.info().data.window = _window
  8. os.execute(program)
  9. term.clear()
  10. end
  11.  
  12. window('/bin/sh.lua', 10, 5, 65, 20)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement