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

[1.4.2][SSP] New lines with "\n" not working with printers

Started by Woodside235, 24 September 2012 - 05:16 PM
Woodside235 #1
Posted 24 September 2012 - 07:16 PM
I try printer.write("Hello\nWorld") and I get:
http://filesmelt.com/dl/2012-09-24_13.09_.19_.png

However setCursorPos still works:
http://filesmelt.com/dl/2012-09-24_13.09_.02_.png
GopherAtl #2
Posted 24 September 2012 - 07:32 PM
this is not a bug. none of the write() commands, on term, monitors, or now the printer, handle newlines. You can either implement your own line wrapping, or you can do what they did in edit, which is create a wrapper for printer that allows it to be used with term.redirect, so you can use print to print to pages.