Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/alexcoder04/shclrz

Colored output in the shell made simple
https://github.com/alexcoder04/shclrz

bash cli color colorization colors command-line linux shell shell-script terminal utility

Last synced: 2 days ago
JSON representation

Colored output in the shell made simple

Awesome Lists containing this project

README

        

# shclrz - shell colorizer

**Note:**
There is a more heavy version of this project with more features written in Go.
Check it out: [alexcoder04/golored](https://github.com/alexcoder04/golored).

shclrz (as in **SH**ell **C**o**L**o**R**i**Z**er) is a simple shell script with
the goal to simplify creating colored output in the shell. You don't need to
remember the ANSI escape sequences anymore, you can just pipe your text into
`shclrz` and the output will be colored.

## Usage

### As standalone program

```
shclrz [OPTIONS]
```

| option | alternative | function |
|------------------|-----------------------------|---------------------------|
| `-h` | `--help` | print help |
| `-v` | `--version` | print program version |
| `-i` | `--info` | print color codes |
| `-s SOURCE_FILE` | `--source-file SOURCE_FILE` | read from file |
| `-f COLOR` | `--foreground COLOR` | specify foreground color |
| `-b COLOR` | `--background COLOR` | specify background color |
| `-F FORMATTING` | `--formatting OPTION` | specify formatting option |

#### Examples:

```
shclrz -f red -F underline