Skip to content

Demo of ANSI escape codes palette right in your bash!

Notifications You must be signed in to change notification settings

hinell/palette-print.bash

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Palette Print Bash

ANSI palette in your bash terminal!

Prints specified range of colors and its brightness

Install

Download and drop the script into appropriate folder. Then either source insde .{zsh|bash}rc file or put into right /binary folder.

# .zshrc
$ . /path/to/palette.bash 
$ mv /downloads/palette.bash $HOME/.local/bin # XDG default
$ mv /downloads/palette.bash /usr/local/bin   # Others 

Usage:

To print the palette

$   palette.bash [[brightness] [colors]] [legend_radix]
$ ./palette.bash ...
# brightness    - Any int from 0 to 255 
# colors        - Any int from 0 to 255 
# legend_radix  - 16 or 10

Commands

Command Shortcut Description
palette.bash help show help
palette.bash cache clear cache
palette.bash examples x show examples
palette.bash --version v print version

How it works?

Under hood it uses ANSI escape codes to print the palette.

License

See palette.bash file.

See also

  • $ man console_codes

Copyright (C) 2021- [email protected]

About

Demo of ANSI escape codes palette right in your bash!

Resources

Stars

Watchers

Forks

Releases

No releases published

Sponsor this project

Packages

No packages published

Languages