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

Printing text on the bottom of the screen

Started by RatcheT2497, 27 December 2013 - 01:19 PM
RatcheT2497 #1
Posted 27 December 2013 - 02:19 PM
Well, i'm running into a problem. I'm trying to print text on the bottom of the screen, and it just doesn't want to work. I am sure that this has happened to most people, and i tried everything. I tried term.setCursorPos, i tried w, h = term.getSize, i just tried everything, and it always glitches up. Now, i think i know why this happens, (although i'm not really sure) and i would be VERY gratefull if someone could give me some advice. And yes,, i did look at google. Thanks!

-RatcheT2497 out
TheOddByte #2
Posted 27 December 2013 - 02:26 PM
Well doesn't this work?

local w, h = term.getSize()
term.setCursorPos( 1, h )
term.write( "Hello World!" )
And if you're using print it will automatically go down one line so you'll have to use term.write instead ;)/>
RatcheT2497 #3
Posted 27 December 2013 - 02:36 PM
Ok, now i know that i haven't tried everything xD Gonna try that now.

EDIT: It worked. Thank you very much! Now, i'll just have to kick myself for not trying that…
Edited on 31 December 2013 - 05:43 AM