Posted 23 July 2016 - 07:54 PM
Hi guys, Code first then I tell what I am trying ok?
if peripheral.getType("top") == "monitor" then
monside = "top"
end
if peripheral.getType("bottom") == "monitor" then
monside = "bottom"
end
if peripheral.getType("right") == "monitor" then
monside = "right"
end
if peripheral.getType("left") == "monitor" then
monside = "left"
end
if monside == "none" then
else
monitorget = peripheral.wrap( monside )
monitorget.setTextScale(2.8)
end
if monside == "none" then
else
term.write(text)
printCentered(h / 2, text)
write(text)
--[[term.redirect(peripheral.wrap(monside))
if not peripheral.getType("top") == "nill" then
term.redirect(peripheral.wrap("top"))
end
if not peripheral.getType("bottom") == "nill" then
term.redirect(peripheral.wrap("bottom"))
end
if not peripheral.getType("right") == "nill" then
term.redirect(peripheral.wrap("right"))
end
if not peripheral.getType("left") == "nill" then
term.redirect(peripheral.wrap("left"))
end
if not peripheral.getType("front") == "nill" then
term.redirect(peripheral.wrap("front"))
end
if not peripheral.getType("back") == "nill" then
term.redirect(peripheral.wrap("back"))
end--]]
write(text)
term.write(text)
printCentered(h / 2, text)
end
printCentered(h / 2, text)
Ok now as you see in the code I am redirecting to all the connected peripherals and the code is working but I want to make the text appear in the terminal too and send too.. But it dosent go to terminal even if I try anything, Help me please I will appreciate it :)/>