What do you expect that function to do? And why not just roll your own...
For just a "shortcut" to
term.out() :
Code:
function print (s)
term.out(s)
end
For a more (C library) sprintf like behaviour:
Code:
function printf (fmt, ...)
term.out(string.format(fmt, unpack(arg)))
end
If you are planning to use it/them in multiple scripts, put it in a Lua-file under "Scripts/" under a "catchy" name (e.g. "my_lib.lua").
Then you can "include" the definitions/declarations in your Lua script via:
Code:
run('my_lib')
-- ... your code using it goes here ...
Although, those "one-liners" would barely make it a "Library" :lol:
And I don't think these should be made "Orbiter-standard", as the current functionality is enough to do the things one has to do with a fairly small amount of extra work.
Second, these print functions are only useful in an terminal-environment; by using a member of
term, it is obvious for any reader of the script where it goes...