Change the color of text output #11

Closed
opened 2025-08-31 16:59:13 +10:00 by DiamondNether90 · 1 comment

Right now, the only way to output is plain text. Changing the colour would be extremely useful.

Suggested syntax: setcolor $hex. Changes the color of any outputed text to $hex (errors if invalid).
Usage: setcolor "0xCFD324" or setcolor "CFD324", whichever is faster to interpret :)

Right now, the only way to output is plain text. Changing the colour would be extremely useful. Suggested syntax: `setcolor $hex`. Changes the color of any outputed text to $hex (errors if invalid). Usage: `setcolor "0xCFD324"` or `setcolor "CFD324"`, whichever is faster to interpret :)
Owner

Different terminals do colour differently, so this would be tricky to implement. however most support escape codes for colour changing, so when I add escape code support this will be implemented.

Have a read of this while I implement everything (eventually) (for now try them in Python)

Different terminals do colour differently, so this would be tricky to implement. however most support escape codes for colour changing, so when I add escape code support this will be implemented. Have a read of [this](https://stackoverflow.com/questions/4842424/list-of-ansi-color-escape-sequences) while I implement everything (eventually) (for now try them in Python)
max closed this issue 2025-08-31 18:18:09 +10:00
This repo is archived. You cannot comment on issues.
No Label
2 Participants
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: ground/ground-old#11