https://github.com/shakibamoshiri/cecho
showing the ANSI color on the terminal
https://github.com/shakibamoshiri/cecho
ansi-colors color-on-terminal echo
Last synced: 6 months ago
JSON representation
showing the ANSI color on the terminal
- Host: GitHub
- URL: https://github.com/shakibamoshiri/cecho
- Owner: shakibamoshiri
- Created: 2017-06-08T09:45:25.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2017-06-08T10:07:47.000Z (over 8 years ago)
- Last Synced: 2025-04-15T01:53:30.319Z (6 months ago)
- Topics: ansi-colors, color-on-terminal, echo
- Language: C
- Size: 25.4 KB
- Stars: 9
- Watchers: 3
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
### cecho
Or colorize echo, is a simple `C` Language code that allows you seeing the output of [ANSI COLOR CODE](https://en.wikipedia.org/wiki/ANSI_escape_code).The only thing you need is just the `gcc` compiler to compile the code and then use it.
Or simply you can use `make` command:
Of course first: `git clone https://github.com/k-five/cecho.git`and then:
```
cd cecho
make build
make test
make clean
```
Without `make` and using `gcc` directly:
```
gcc -O2 -std=c11 main.c -o cecho
```### Some examples:
- cecho green some-test
- cecho b-green some-test
- cecho i-green * endl
- cecho random * endl### screenshot:
