Jump to content




write in print


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

#1 KaMiKaZeTo

  • Members
  • 8 posts

Posted 30 May 2012 - 08:00 PM

Posted Image
How can I write the write("") command in print ("") if this is possible?
please help me :)/>

#2 MysticT

    Lua Wizard

  • Members
  • 1,597 posts

Posted 30 May 2012 - 08:22 PM

Just move the cursor to the position it should write to and then call write.
print("##...##")
print(...)
...
print("##...##")
term.setCursorPos(x, y) -- replace x and y with the correct values for the position
write("Your text...")


#3 KaMiKaZeTo

  • Members
  • 8 posts

Posted 31 May 2012 - 09:39 AM

Thanks it worked but i have one more problem

Posted Image
When i write something two of the symbols disappears when i write something one is # the other | can i fix that?

Posted Image

#4 Macapple

  • Members
  • 28 posts

Posted 03 June 2012 - 07:43 AM

You should again set cursor position
term.setCursorPos(x, y) --Use you coords here
you should add this to your code,before permitting to enter an input





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users