Created
June 29, 2018 18:35
-
-
Save es0m/aa799566e570e2cfa61120ead67ae132 to your computer and use it in GitHub Desktop.
makes an ansi color interpolation of a string for bash
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| fff = "(•_•) ( •_•)>⌐■-■ (⌐■_■)" | |
| prompt = "" | |
| for i, f in enumerate(fff): | |
| prompt += "\\033[38;5;0;48;5;{}m{}".format(232+i,f) | |
| print(prompt) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment