Change the color of text output #11
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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"orsetcolor "CFD324", whichever is faster to interpret :)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)