This is a read-only snapshot of the ComputerCraft forums, taken in April 2020.
JPROSP8's profile picture

Title: Monitors and Player Detectors

Started by JPROSP8, 27 May 2013 - 02:58 PM
JPROSP8 #1
Posted 27 May 2013 - 04:58 PM
Title: Monitors and Player Detectors
FTB 1.4.7 Mindcrack Pack
p = peripheral.wrap("right")
local monitor = peripheral.wrap("front")
local x, y = monitor.getCursorPos()
y=y+1
while true do
a, b = os.pullEvent("player")
monitor.write(B)/>/>
monitor.setCursorPos(1,y)
end

When I do that code it show up once then i try again it comes up but the third time it doesn't come up. Any Suggestions?
Id also like it to move over to the next line.
Lyqyd #2
Posted 16 July 2013 - 01:28 PM
It should work fine. You can use getCursorPos along with setCursorPos to adjust the cursor relative to its current location.
Zudo #3
Posted 17 July 2013 - 01:46 AM
Don't you want to put

y = y+1
in the loop?