KingofGamesYami, on 24 September 2016 - 08:29 PM, said:
I'm pretty sure printing word-wraps
To my memory, and according to
how it's documented, it works the same as
term.write(). That means no automatic word-wrap, and it also means that if you fail to manually move the cursor to the newline position when you're about to go off the current page... then the cursor will simply go off the page, and it won't be possible to read what's written there.
With
cPrint I rigged things so that you could treat the virtual printer as a terminal, meaning you can redirect to it and use print (which, in turn, handles word-wrap and all that good stuff for you). Catch is cPrint is a bit of a cheat - it doesn't work with "real" printers. It
does make things a lot easier though - you can print in multiple colours without having to mess around with inks, and you can print to multiple pages without having to mess around with paper. To make something similar that works with a proper printer, you'd need a turtle stocked with dyes.
Of course, this is all putting aside that printing a script probably isn't going to produce anything useful? You can't scan the printout back into anything. If you want to back a script up, you're much better off using
pastebin for the purpose.
Edited by Bomb Bloke, 24 September 2016 - 11:07 PM.