Api/dev.colorset()

From Minux Wiki
Revision as of 14:36, 1 October 2024 by Shorun (talk | contribs)
Jump to navigation Jump to search

this function is part of the dev. api and used to set colors for the terminal.


usage:

dev.colorset(textcolor, backgroundcolor)


output:

sets the text and background color for all following prints or writes.

color options come from the colors. api.

background is optional


examples:

dev.colorset("red","green") sets the text to red and background to green.

dev.colorset("yellow") sets the text colour to yellow.