RosettaCodeData/Task/Terminal-control-Coloured-text/BaCon/terminal-control-coloured-text.bacon
2023-07-01 13:44:08 -04:00

13 lines
323 B
Text

' ANSI terminal coloured text
COLOR FG TO BLACK
PRINT "a word"
COLOR FG TO RED
PRINT "a word"
COLOR FG TO GREEN
PRINT "a word"
' Other colours include YELLOW, BLUE, MAGENTA, CYAN, WHITE
' Second keyword can be BG for background colour control
' The COLOR command also accepts keywords of NORMAL, INTENSE, INVERSE, RESET