https://github.com/pocc/terminalart
24-bit True Color Art in the terminal using ANSI escape codes
https://github.com/pocc/terminalart
Last synced: over 1 year ago
JSON representation
24-bit True Color Art in the terminal using ANSI escape codes
- Host: GitHub
- URL: https://github.com/pocc/terminalart
- Owner: pocc
- License: apache-2.0
- Created: 2019-04-02T21:32:42.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2019-04-07T10:17:45.000Z (over 7 years ago)
- Last Synced: 2025-03-25T07:35:52.496Z (over 1 year ago)
- Language: Shell
- Homepage:
- Size: 505 KB
- Stars: 5
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Terminal True Color Art
_24-bit truecolor terminal art using ANSI escape codes_

This art is generated by a modified version of Egmont Koblinger's
[img.sh](https://gitlab.gnome.org/GNOME/vte/blob/master/perf/img.sh) as img.sh.
You can use these images, especially `colorline.ans` and `ansitesting.ans` to
verify true color compatibility. Follow usage to see the SGR images in ans/ and verify
that they look like the pixel image in img/.
For information on 24-bit true color and
terminal support for it, check out https://github.com/termstandard/colors.
For information on SGR codes, Wikipedia has a [good
section](https://en.wikipedia.org/wiki/ANSI_escape_code#SGR_(Select_Graphic_Rendition)_parameters)
on it.
## Usage
### Generating ans files
To generate ans files using img.sh, use
bash img.sh -common
| tee
.ans
* `-common` will ensure that it has a semicolon delimeter which is the most
supported type
* Using `tee` will show you the produced image as it is being saved
### Printing ans files
You can use these images to verify whether your terminal supports 24-bit
truecolor using ANSI escape codes. To view the images, use your OS's file print
utility:
| Platform | Command |
|----------|-------------------|
| \*nix | `cat ` |
| Windows | `type ` |
To see all ans files sequentially, use `$command ans/*.ans`.
## Tests
### Color line, 80w
Modified from Anton Kochkov's [awk script](github.com/termstandard/colors)

### Foreground and background test, 64w
Modified form of iTerm2 [24-bit
test](https://raw.githubusercontent.com/JohnMorales/dotfiles/master/colors/24-bit-color.sh):

### Foreground and background test, 78w
Todd Larason's [perl
cubes](https://github.com/robertknight/konsole/blob/master/tests/color-spaces.pl)
Konsole test:

## Various Images, 80w
### Wave off Kamigawa

### Beastie

### Butterfly

### Earth

### Great Horned Owl

### Rainbow

### Rose

### Starry Night

### Sunflower

### Tiger

### Tux
