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

Stop text from going down to next line?

Started by MarcoPolo0306, 08 May 2018 - 06:19 PM
MarcoPolo0306 #1
Posted 08 May 2018 - 08:19 PM
Whenever I run

print(" Edit Background ")
I want it NOT to go to the next line, and it skips the line.
I tried replacing the spaces with A's and placing the spaces separately, but that did not work
Any help would be appreciated!
Dog #2
Posted 08 May 2018 - 08:27 PM
If you don't want auto-wrapping and auto-newline/return then use term.write()

term.write(" Edit Background ")

If you want to keep auto-wrapping, but don't want auto-newline/return then use write()

write(" Edit Background ")
Edited on 08 May 2018 - 06:28 PM
MarcoPolo0306 #3
Posted 08 May 2018 - 09:05 PM
If you don't want auto-wrapping and auto-newline/return then use term.write()

term.write(" Edit Background ")

If you want to keep auto-wrapping, but don't want auto-newline/return then use write()

write(" Edit Background ")

Worked! Thanks!