mirror of
https://github.com/kepler155c/opus
synced 2025-01-01 03:10:28 +00:00
specify kiosk monitor
This commit is contained in:
parent
2fd2b552fc
commit
5a758f0292
@ -4,7 +4,10 @@ local peripheral = _G.peripheral
|
||||
local settings = _G.settings
|
||||
local term = _G.term
|
||||
|
||||
local mon = peripheral.find('monitor')
|
||||
local preferred = settings.get('kiosk.monitor')
|
||||
local mon = preferred and peripheral.wrap(preferred) or
|
||||
peripheral.find('monitor')
|
||||
|
||||
if mon then
|
||||
term.redirect(mon)
|
||||
mon.setTextScale(tonumber(settings.get('kiosk.textscale')) or 1)
|
||||
|
Loading…
Reference in New Issue
Block a user