ok i'm working on making a setup on my server where people can add locations to a file and print up a list of them
the adding to the list is easy , addLocation name x y z
and it will append
name x,y,z
nether equivilent xn,y,zn
unfortinatly the "\n" appears both in terminal and on paper as a question mark
is there a way to get it to appear correctly in more places than just the file?
printing with a newline ... not a ?
Started by etopsirhc, Oct 09 2012 10:28 PM
4 replies to this topic
#1
Posted 09 October 2012 - 10:28 PM
#2
Posted 09 October 2012 - 10:33 PM
etopsirhc, on 09 October 2012 - 10:28 PM, said:
ok i'm working on making a setup on my server where people can add locations to a file and print up a list of them
the adding to the list is easy , addLocation name x y z
and it will append
name x,y,z
nether equivilent xn,y,zn
unfortinatly the "n" appears both in terminal and on paper as a question mark
is there a way to get it to appear correctly in more places than just the file?
the adding to the list is easy , addLocation name x y z
and it will append
name x,y,z
nether equivilent xn,y,zn
unfortinatly the "n" appears both in terminal and on paper as a question mark
is there a way to get it to appear correctly in more places than just the file?
You have to play with (term/mon/printer).setCursorPos() to wrap lines... Easy way to do this is adapting the code of the function print() in bios.lua .
#3
Posted 09 October 2012 - 10:36 PM
i was afraid thats what you'd say ><
looks like i'll have to make a loop and something to split this on n . so much for simple XP
looks like i'll have to make a loop and something to split this on n . so much for simple XP
#4
Posted 09 October 2012 - 10:42 PM
etopsirhc, on 09 October 2012 - 10:36 PM, said:
i was afraid thats what you'd say ><
looks like i'll have to make a loop and something to split this on n . so much for simple XP
looks like i'll have to make a loop and something to split this on n . so much for simple XP
True story. It's not really hard though. But really, I suggest you to use the print() code from bios.lua . Basically, you only need to replace term there for whatever you want to write to.
#5
Posted 09 October 2012 - 10:45 PM
the term part was only for when i was testing , the main part of what i need to do is all in the printer
and yeah its not really hard , it just i was hoping it would be easy as printer.write(file.readAll())
and yeah its not really hard , it just i was hoping it would be easy as printer.write(file.readAll())
2 user(s) are reading this topic
0 members, 2 guests, 0 anonymous users











