Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/devmanu-de/colors
https://github.com/devmanu-de/colors
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/devmanu-de/colors
- Owner: DevManu-de
- License: mit
- Created: 2021-03-11T15:09:09.000Z (almost 4 years ago)
- Default Branch: master
- Last Pushed: 2021-07-27T17:13:42.000Z (over 3 years ago)
- Last Synced: 2023-07-23T22:21:52.827Z (over 1 year ago)
- Language: C
- Homepage:
- Size: 18.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# colors
contains various color that can be used in a terminal emulator but not with ncurses## Description
The colors are formatted in `[COLORNAME_WHERE]`
Example `BLACK_FG` sets black as foreground color
Example `BLACK_BRIGHT_FG` sets black bright as foreground color
Example `BLACK_BG` sets black as background color
Example `BLACK_BRIGHT_BG` sets black bright as background color
One exception is the COLOR RESET this resets the color to standard
`RESET_COLOR`
or
`COLOR_RESET`## Usage
`puts(RED_FG "Hallo Welt" RESET_COLOR);`
or
`printf(RED_FG "%s" RESET_COLOR, );`
or
`printf("%s%s%s", BLUE_BG, , RESET_COLOR);`