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

How Could I Get This To Work?

Started by trey2k, 06 November 2013 - 10:31 PM
trey2k #1
Posted 06 November 2013 - 11:31 PM
i was wondering if this could work?

l  = 0
function curs()
l = l + 1
term.setCursorPos(1,l)
end


if you dont know what im trying to do… im trying to make it so every time i use the function it move down one line :D/>

also how could i limit text while the computer is reading text?
campicus #2
Posted 07 November 2013 - 01:27 AM
you could just use

print("This is on one line\nThis is on another\nAnd another")

which would print:

This code is on one line
This is on another
And another

or

local y = 1

function lineDown(x)
  y = y + x
  term.setCursorPos(1,y)
end
which would go down the number 'x' that you specify

also how could i limit text while the computer is reading text?
Not sure what you mean sorry
Edited on 07 November 2013 - 01:12 AM
trey2k #3
Posted 07 November 2013 - 01:58 AM
you could just use

print("This is on one line\nThis is on another\nAnd another")

which would print:

This code is on one line
This is on another
And another

or

local y = 1

function lineDown(x)
  y = y + x
  term.setCursorPos(1,y)
end
which would go down the number 'x' that you specify
also how could i limit text while the computer is reading text?
Not sure what you mean sorry

Dammit, sorry mod, this was supposed to be edited on my first post
thanks… and about the other is ok i found what i was looking for… BUT THANKS i wasn't able to find that :)/>