Posted 29 May 2012 - 08:40 PM
Here is code I'm using:
I'd use term.write, but it doesn't honor n or multiline strings written using [[]] (when string is written that way, it display questionmark where new line is supposed to be…)
//edit for qabove code to work properly, your monitor has to be placed on right side of computer and be at least two blocks wide. It was made for scrolling news system, similar to those you sometimes see on train stations or places like that.
monitor = peripheral.wrap("right")
term.redirect(monitor)
kate=
[[ .###.|
## oo##|
'#___#'|
'###' |
KATE |]]
term.clear()
term.setCursorPos(1,1)
print(kate)
term.restore()
Nothing wrong, huh? (aside of explicitly assuming monitor is on right?) Wrong! Single monitor (1x1x1 block) has resolution 7x5 characters (widthXheight). So I made nice, 5 characters in height ascii art that should be displayed then. Unfortunately, no matter what I do, it prints only last 4 lines. Same if I use normal string (in quotes) with new line, n escapecodes.I'd use term.write, but it doesn't honor n or multiline strings written using [[]] (when string is written that way, it display questionmark where new line is supposed to be…)
//edit for qabove code to work properly, your monitor has to be placed on right side of computer and be at least two blocks wide. It was made for scrolling news system, similar to those you sometimes see on train stations or places like that.