In a Bash script I need to print out some text in colors.
However, I don't want to specify fixed colors. I want to use the ones that are specified by the terminal(/-emulator).
How can I programmatically access them? Usually these must be a set of 16 colors. Two of them must be labeled background and foreground.
There should be a way to do so, since other programs as fish, Emacs, etc. also appear in the colors specified in the terminal emulator.