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

Writing text to new line (mining turtle console)

Started by minibren, 24 April 2013 - 10:07 AM
minibren #1
Posted 24 April 2013 - 12:07 PM
I am having a very simple problem with my program I am designing for a mining turtle. I ask the user a question in the console using the "term.write" command, however if I make the question too long the text just continues off the edge of the console window. Maybe I need to use a different command to write the text?

One other problem I also have related to this is with using "read()" to get a data input from a player. I would like to enter the data input under the question I have just asked, however instead what happens is when I type into the console it appears at the end of the question/text instead.

Any help would be appreciated.
Lyqyd #2
Posted 01 May 2013 - 10:57 AM
Split into new topic.

The desired behavior can be achieved by using print() instead of term.write().