term.write

From ComputerCraft
Jump to: navigation, search

term.write
Function
Syntax
term.write()
Returns nil
API term
Source CC:Tweaked (source)

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.

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