Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mtmiller/fix-term-env
automatically adjust TERM to support more or less colors
https://github.com/mtmiller/fix-term-env
Last synced: 9 days ago
JSON representation
automatically adjust TERM to support more or less colors
- Host: GitHub
- URL: https://github.com/mtmiller/fix-term-env
- Owner: mtmiller
- License: gpl-3.0
- Created: 2010-10-14T20:37:50.000Z (about 14 years ago)
- Default Branch: master
- Last Pushed: 2010-10-20T11:33:19.000Z (about 14 years ago)
- Last Synced: 2023-03-11T05:49:07.021Z (almost 2 years ago)
- Homepage:
- Size: 102 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README
- License: COPYING
Awesome Lists containing this project
README
The purpose of fix-term-env is to adjust the TERM environment variable, in
particular with respect to the color depth supported, based on other
environment variables, compatibility with the terminfo database, and any
other clues that can be automatically derived from the system without user
interaction.To use, simply install fix-term-env somewhere in your PATH and add something
like the following to your ~/.bashrc:eval `fix-term-env`
The main motivation is the well-known problem of how best to get 256-color
support from within GNOME Terminal, with the added constraint of detecting
older versions and falling back to a lesser color depth.A secondary requirement is the ability to demote the color depth based on
the terminfo definitions available on the current system. This allows, for
example, an ssh session in a 256-color-capable terminal to a machine with an
older terminfo database to automatically reduce the number of colors until
an acceptable terminal setting is found.http://github.com/mtmiller/fix-term-env
Acknowledgements
----------------* http://vim.wikia.com/wiki/256_colors_in_vim
* gnome-terminal source: git://git.gnome.org/gnome-terminal
* vte source: git://git.gnome.org/vte