Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local process = require "process"
- local term = require "term"
- local function window(program, dx, dy, width, height)
- local _window = term.internal.open(dx, dy, width, height)
- term.bind(term.gpu(), _window)
- process.info().data.window = _window
- os.execute(program)
- term.clear()
- end
- window('/bin/sh.lua', 10, 5, 65, 20)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement