term.setTextColour
Sets the text colour of the terminal object. All text written after calling this function will have this colour, until it is changed again.
|
|||
| Prints "Hello, world!" in green. | |||
| Code | <nowiki>
term.setTextColour(colours.green)
print("Hello, world!")
</nowiki>
|
||
| Output | |||
Functions | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Lua |
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| CC:Tweaked |
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| term.setTextColour Function | |
|---|---|
|
Syntax term.setTextColour(
| |
| 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.