[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: emacs' list-colors-display functionality, but for the shell/terminal
From: |
Dan Jacobson |
Subject: |
Re: emacs' list-colors-display functionality, but for the shell/terminal |
Date: |
21 Apr 2001 16:57:18 +0800 |
User-agent: |
Gnus/5.0808 (Gnus v5.8.8) Emacs/20.7 |
>>>>> "Dan" == Dan Jacobson <address@hidden> writes:
Dan> Suggestion: emacs has the command "list-colors-display": "Display
Dan> names of defined colors, and show what they look like." But how about
Dan> for the shell terminal? The closest GNU utility one finds is
Dan> dircolors -p, but I want to see all the colors and what they look like
Dan> in person. Therefore perhaps add list-colors-display style
Dan> functionality to a new command line switch to dircolors, or something.
Fab concept, Dan. How about
#Show color combinations on terminal, for say use in the bash prompt.
#Quick hack, don't know what I'm doing. Also see bash man page's \[, \]
#Want to be like emacs' list-colors-display but do all combinations
awk 'BEGIN{
for (i=40;i<=48;i++){
for (j=30;j<=38;j++){
print "\033[01;" i ";" j \
"m This is the result of\033[00m \\e[01;" i ";" j "m"}}}'
This should after being rewritten by somebody who is more sure of what
they are doing than me, be part of the GNU standard shell utils, no?
Mine is called ~/bin/showterminalcolors
Thanks to bash correspondents who tipped me off to \[ \].
--
http://www.geocities.com/jidanni Tel886-4-25854780 e-mail:restore .com.