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

Print message at bottom line, fail. [programming]

Started by Goof, 04 January 2013 - 09:31 PM
Goof #1
Posted 04 January 2013 - 10:31 PM
Hello. (again)

ehm.. im trying to make my own Operating System, (not for posting it online) but i want a "start" text to be displayed at the bottom line…
but. when doing this;


function printBorderD()
   tT(colors.white)
   tB(colors.blue)
   tP(1,18)
   print("Start")
end
; it just messes everything on the bottom line, up…

in this case, does i then need term.scroll(-1) ? (if that exists)

Can you help me?


Thanks in Advance :D/>
remiX #2
Posted 04 January 2013 - 10:39 PM
Change print to write :D/>

I made this mistake yesterday and it took me a while to find out why it didn't work xD

Because print inserts a new line so that is what it is doing
Goof #3
Posted 04 January 2013 - 10:50 PM
Ahhh… Thanks!

New achievement get: Print does insert a new line :o/>

Hehe :D/>

Thanks :D/>