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

write in print

Started by KaMiKaZeTo, 30 May 2012 - 07:00 PM
KaMiKaZeTo #1
Posted 30 May 2012 - 09:00 PM

How can I write the write("") command in print ("") if this is possible?
please help me :)/>/>
MysticT #2
Posted 30 May 2012 - 09: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...")
KaMiKaZeTo #3
Posted 31 May 2012 - 10:39 AM
Thanks it worked but i have one more problem


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

Macapple #4
Posted 03 June 2012 - 08: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