mirror of https://github.com/kepler155c/opus
12 lines
294 B
Lua
12 lines
294 B
Lua
_G.requireInjector()
|
|
|
|
local Peripheral = require('peripheral')
|
|
|
|
_G.device = Peripheral.getList()
|
|
|
|
-- register the main term in the devices list
|
|
_G.device.terminal = _G.term.current()
|
|
_G.device.terminal.side = 'terminal'
|
|
_G.device.terminal.type = 'terminal'
|
|
_G.device.terminal.name = 'terminal'
|