term.write

Writes text at the current cursor position in the current term. Unlike print, this function does not automatically move to the next line after writing. Additionally, unlike write and print, it does not perform any text wrapping.

ExampleWrite to the term
Writes "Hello, world!" to the current term.
Code
<nowiki>
term.write("Hello, world!")
    </nowiki>
Output
Hello, world!
ExampleWrite multiple strings the term
Writes "foobar" to the current term. Note how there is no space between writes.
Code
<nowiki>
term.write("foo")
term.write("boo")
    </nowiki>
Output
foobar

term.write
Function
Syntax
term.write(
  • text : string
)

Returns nil
API term
Source CC:Tweaked (source)
This article is issued from Computercraft. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.