Jump to content




Printing text on the bottom of the screen


  • You cannot reply to this topic
2 replies to this topic

#1 RatcheT2497

  • Members
  • 72 posts
  • LocationSlovakia

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

#2 TheOddByte

    Lazy Coder

  • Members
  • 1,607 posts
  • LocationSweden

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 ;)

#3 RatcheT2497

  • Members
  • 72 posts
  • LocationSlovakia

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 by RatcheT2497, 31 December 2013 - 06:43 AM.






1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users