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

Anyone have a chart that shows cursor positions?

Started by ZippoMoon, 15 January 2016 - 10:01 PM
ZippoMoon #1
Posted 15 January 2016 - 11:01 PM
It would be really useful when using setCursorPos.
KingofGamesYami #2
Posted 15 January 2016 - 11:35 PM
Top Left is (1, 1)

Bottom Right is term.getSize()


term.clear()
term.setCursorPos( 1, 1 )
term.write( "A" )
term.setCursorPos( term.getSize() )
term.write( "B" )
Admicos #3
Posted 15 January 2016 - 11:36 PM
1,1 is top left
51,19 is bottom right (With the default size)

I think you can figure out the rest.

Edit: got ninja'd :(/>
Edited on 15 January 2016 - 10:37 PM
ZippoMoon #4
Posted 15 January 2016 - 11:44 PM
Thanks.