TheOriginalBIT, on 26 March 2013 - 01:54 AM, said:
there is no way to display tab atm so \t is replaced with a space
Darn! Too bad it isnt implemented. I like the feature of /t because you can nicely make columns of text.
Than I need to use something like this.. I guess..
local t = {'s','o','m','e','t','h','i', 'n', 'g'}
local x = {'i','d','e','m'}
write( "X: T:" )
for i = 1, #t do
term.setCursorPos( 5, i + 1 )
write( t[i] )
end
for i = 1, #x do
term.setCursorPos( 1, i + 1 )
write( x[i] )
end
It'll work.
Alekso56, on 26 March 2013 - 01:56 AM, said:
From the LUA manual: (just in case) (TheOriginalBIT already answered the question)
Literal strings can be delimited by matching single or double quotes, and can contain the following C-like escape sequences:- \a --- bell
- \b --- backspace
- \f --- form feed
- \n --- newline
- \r --- carriage return
- \t --- horizontal tab --space instead
- \v --- vertical tab -- space instead
- \\ --- backslash
- \" --- quotation mark
- \' --- apostrophe
- \[ --- left square bracket
- \] --- right square bracket
Thanks man, I couldnt find anything about this on the webs!
And also thanks BIT