reorganization

This commit is contained in:
kepler155c
2017-09-15 00:19:09 -04:00
parent a1a036dadd
commit b435fe47fc
31 changed files with 15201 additions and 0 deletions

25
apps/mirror.lua Normal file
View File

@@ -0,0 +1,25 @@
requireInjector(getfenv(1))
local Terminal = require('terminal')
local args = { ... }
local mon = device[table.remove(args, 1) or 'monitor']
if not mon then
error('mirror: Invalid device')
end
mon.clear()
mon.setTextScale(.5)
mon.setCursorPos(1, 1)
local oterm = Terminal.copy(term.current())
Terminal.mirror(term.current(), mon)
term.current().getSize = mon.getSize
if #args > 0 then
shell.run(unpack(args))
Terminal.copy(oterm, term.current())
mon.setCursorBlink(false)
end