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.
|
|||
Writes "Hello, world!" to the current term. | |||
Code | <nowiki>
term.write("Hello, world!")
</nowiki>
|
||
Output | Hello, world!
|
|
|||
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
|
Functions | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Lua |
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
CC:Tweaked |
|
term.write Function | |
---|---|
Syntax term.write(
| |
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.