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

finding cursor position

Started by fergregerg, 08 July 2012 - 01:41 AM
fergregerg #1
Posted 08 July 2012 - 03:41 AM
So i got a program to test eu and i am trying to display it on the screen' i got it working but the cursor pos are all screwed up. is there a way to easily find where the cursor pos will be? has someone possibly written a program for it?
Masoman3 #2
Posted 08 July 2012 - 05:23 AM
Just use the code
[ term.setCursorPos(1,1) ]
to set the cursor pos back to the start, or edit the 1,1 to change the position.

Use [ term.getCursorPos() ] to find the position, it will be in the format x then y

trust me, I tested it before this