I need help with a simple program
#1
Posted 07 September 2012 - 11:58 PM
but it wont show multiple lines
it shows it all in one line can someone help me
code:
http://gyazo.com/6ef...52793eb45a057b5
#2
Posted 08 September 2012 - 12:03 AM
#3
Posted 08 September 2012 - 12:03 AM
n means newline in lua.
#4
Posted 08 September 2012 - 12:03 AM
#6
Posted 08 September 2012 - 12:07 AM
Noodle, on 08 September 2012 - 12:03 AM, said:
n means newline in lua.
http://i.imgur.com/B6ST0.png
http://i.imgur.com/DjA0Z.png
#7
Posted 08 September 2012 - 12:07 AM
Any other ideas?
EDIT: Found it! mon.setCursorPos(1,[nextline]) with move it to what ever line [nextline] is, and writing will apear there.
NOTE: you must replace nextline, its no magic.
#8
Posted 08 September 2012 - 12:08 AM
THEN remove the mon. before ALL the writes, then replace the writes with print()
Insert the code below above your code. That should redirect text to the TOP monitor!
- I got the code off of this forum, it's not mine :3.
local side = "top" -- change this
if peripheral.getType(side) ~= "monitor" then
print("No monitor on that side")
return -- Neatly exits the program
else
local monitor = peripheral.wrap(side)
term.redirect(monitor)
end
#9
Posted 08 September 2012 - 12:08 AM
CardingiSFun, on 08 September 2012 - 12:07 AM, said:
Noodle, on 08 September 2012 - 12:03 AM, said:
n means newline in lua.
http://i.imgur.com/B6ST0.png
Try doing multiple lines?
mon.write("Textn")
mon.write("Textn")
#10
Posted 08 September 2012 - 12:09 AM
Noodle, on 08 September 2012 - 12:08 AM, said:
CardingiSFun, on 08 September 2012 - 12:07 AM, said:
Noodle, on 08 September 2012 - 12:03 AM, said:
n means newline in lua.
http://i.imgur.com/B6ST0.png
Try doing multiple lines?
mon.write("Textn")
mon.write("Textn")
#11
Posted 08 September 2012 - 12:10 AM
Then just do
term.redirect(mon)
print("text")
print("text")
term.restore()
#12
Posted 08 September 2012 - 12:45 AM
Noodle, on 08 September 2012 - 12:03 AM, said:
Lettuce, on 08 September 2012 - 12:03 AM, said:
This won't work.
2 user(s) are reading this topic
0 members, 2 guests, 0 anonymous users











