opus/sys/extensions/device.lua

12 lines
294 B
Lua
Raw Normal View History

2017-10-08 21:45:01 +00:00
_G.requireInjector()
2016-12-11 19:24:52 +00:00
local Peripheral = require('peripheral')
2017-10-08 21:45:01 +00:00
_G.device = Peripheral.getList()
2018-01-06 11:07:49 +00:00
-- register the main term in the devices list
_G.device.terminal = _G.term.current()
2018-01-07 03:25:33 +00:00
_G.device.terminal.side = 'terminal'
_G.device.terminal.type = 'terminal'
_G.device.terminal.name = 'terminal'