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