https://github.com/elmisback/ansi-scheme
Terminal emulator colors via ANSI escape sequences
https://github.com/elmisback/ansi-scheme
Last synced: about 1 year ago
JSON representation
Terminal emulator colors via ANSI escape sequences
- Host: GitHub
- URL: https://github.com/elmisback/ansi-scheme
- Owner: elmisback
- Created: 2016-11-24T11:43:21.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2017-03-01T05:44:57.000Z (over 9 years ago)
- Last Synced: 2025-04-19T23:09:57.950Z (about 1 year ago)
- Language: Python
- Homepage:
- Size: 12.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# ansi-scheme
```
to be implemented:
* set
* display
* default_style
* Decent standard scheme library (probably base16)
```
I had this idea while tweaking the vim colorschemefile provided by the base16 project.
# Design documentation
Colorscheme pain points:
* Different formats for schemes in the wild
* Switching schemes on the fly
* Coordinating scheme-switching between terminal-based applications
Goals:
* On-the-fly terminal colorschemes without pain
* Grab schemes from Github
* Single palette for all applications
Non-goals:
* Distinguishing between applications (applications can handle this)
## `.ANSISCHEME` Format
```
{
"colors": {
"Black": "#000000",
...
"BrightBlack": "222222",
...
"BrightWhite": "ffffff",
"16": "ab cd ef",
"18": "cc cc cc",
...
"21": "12 34 56"
},
"styles": {
"extra-dark": {
"foreground": "BrightBlack",
"background": "Black",
"cursor": "33 33 33"
},
"dark": {
"foreground": "White",
"background": "Black",
"cursor": "33 33 33"
},
"light": {
"foreground": "BrightBlack",
"background": "White",
"cursor": "33 33 33"
}
},
"default_style": "dark"
}
# How are the colors parsed?
Use the first 3 pairs of hex digits or fall back to named colors.
# Why are non-(0-15) colors allowed?
Sometimes people like to set other colors.