├── .editorconfig ├── .npmignore ├── LICENSE ├── README.md ├── colortest └── package.json /.editorconfig: -------------------------------------------------------------------------------- 1 | root = true 2 | 3 | [*] 4 | indent_style = space 5 | indent_size = 2 6 | end_of_line = lf 7 | charset = utf-8 8 | trim_trailing_whitespace = true 9 | -------------------------------------------------------------------------------- /.npmignore: -------------------------------------------------------------------------------- 1 | index.html 2 | .editorconfig 3 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2022 Pablo P Varela 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # colortest 2 | 3 |

4 | 5 | 6 |

7 | 8 |

9 | Quickly show all your terminal colors 10 |

11 | 12 | 13 | ## Install 14 | 15 |
16 | dnf 17 | 18 | > Since v3.0.5, `colortest` conforms to Fedora packaging standards 19 | 20 | If you're using Fedora or any other distribution with the `dnf` package manager: 21 | 22 | ```bash 23 | $ sudo dnf install colortest 24 | ``` 25 | 26 | And use it: 27 | 28 | ```bash 29 | $ colortest 30 | ``` 31 | 32 | ❌ To uninstall it: 33 | 34 | ``` 35 | $ sudo dnf remove colortest 36 | ``` 37 | 38 |
39 | 40 |
41 | npm 42 | 43 | If you have npm installed, you can either install it globally or use it directly with `npx`: 44 | 45 | ```bash 46 | $ npx colortest 47 | ``` 48 | 49 |
50 | 51 |
52 | Manually 53 | 54 | Alternatively, you can download and run [the script](https://raw.githubusercontent.com/pablopunk/colortest/master/colortest) from your bash prompt. 55 | 56 |
57 | 58 | 59 | ## Output 60 | 61 | ![shot](https://github.com/pablopunk/art/raw/master/colortest/screenshot.png) 62 | 63 | 64 | # Related 65 | 66 | More at [pablopunk.com](https://pablopunk.com/) 67 | 68 | * Quickly test true color support: [truecolor](https://github.com/pablopunk/truecolor) 69 | * Hyper theme: [hyper-native-dark](https://github.com/pablopunk/hyper-native-dark) 70 | * NPM package generator: [miny](https://github.com/pablopunk/miny) 71 | * Fast bash propmt: [bashy](https://github.com/pablopunk/bashy) 72 | * Fast and lightweight tests: [myass](https://github.com/pablopunk/myass) 73 | 74 | ## License 75 | 76 | [MIT](./LICENSE). 77 | 78 | The original code can be found [here](https://tldp.org/HOWTO/Bash-Prompt-HOWTO/x329.html). 79 | 80 | 81 | ## Author 82 | 83 | | ![me](https://gravatar.com/avatar/fa50aeff0ddd6e63273a068b04353d9d?size=100) | 84 | | --------------------------------- | 85 | | [Pablo Varela](https://pablopunk.com) | 86 | 87 | -------------------------------------------------------------------------------- /colortest: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | # https://tldp.org/HOWTO/Bash-Prompt-HOWTO/x329.html 4 | 5 | T='gYw' # The test text 6 | 7 | echo -e "\n 40m 41m 42m 43m\ 8 | 44m 45m 46m 47m"; 9 | 10 | for FGs in ' m' ' 1m' ' 30m' '1;30m' ' 31m' '1;31m' ' 32m' \ 11 | '1;32m' ' 33m' '1;33m' ' 34m' '1;34m' ' 35m' '1;35m' \ 12 | ' 36m' '1;36m' ' 37m' '1;37m'; 13 | do FG=${FGs// /} 14 | echo -en " $FGs \033[$FG $T " 15 | for BG in 40m 41m 42m 43m 44m 45m 46m 47m; 16 | do echo -en "$EINS \033[$FG\033[$BG $T \033[0m"; 17 | done 18 | echo; 19 | done 20 | echo 21 | -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "colortest", 3 | "main": "colortest", 4 | "bin": { 5 | "colortest": "colortest" 6 | }, 7 | "description": "Quickly show all your terminal colors", 8 | "version": "3.0.7", 9 | "author": "Pablo Varela ", 10 | "bugs": { 11 | "url": "https://github.com/pablopunk/colortest/issues", 12 | "email": "pablovarela182@gmail.com" 13 | }, 14 | "contributors": [ 15 | "Pablo Varela " 16 | ], 17 | "homepage": "https://github.com/pablopunk/colortest", 18 | "keywords": [ 19 | "miny", 20 | "color", 21 | "test", 22 | "colortest", 23 | "tests", 24 | "colors", 25 | "bash", 26 | "terminal", 27 | "cli", 28 | "command", 29 | "line", 30 | "tool" 31 | ], 32 | "license": "MIT", 33 | "repository": { 34 | "type": "git", 35 | "url": "https://github.com/pablopunk/colortest" 36 | } 37 | } 38 | --------------------------------------------------------------------------------