set -g status-bg colour?
Simple question: someone knows where i can find a list of colors code indexed 0-255? I can't find it anywhere! or maybe an alternative to this for say tmux how to set the color I want? thx in advance M -- Download Intel® Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev ___ tmux-users mailing list tmux-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/tmux-users
Re: set -g status-bg colour?
tilde wrote: > Simple question: > someone knows where i can find a list of colors code indexed 0-255? I > can't find it anywhere! > or maybe an alternative to this for say tmux how to set the color I want? There's tools/256colors.pl in the tmux source tree. It doesn't give the indexes, but studying the sources was illuminating (at least, to me). I also whipped up a small shell script to help me find color values I like. I've attached it here. -- Micah J. Cowan http://micah.cowan.name/ #! /bin/bash main() { echo "Enter a color number to get a sample and translation," echo "'g' and 0-23 for grey, or 'c' and three numbers 0-5 for color." echo -n '> ' while read line do case "$line" in 'g '*) handle_grey "${line#'g '}" ;; 'c '*) handle_color "${line#'c '}" ;; *) handle_code "$line" ;; esac echo -n '> ' done echo } handle_grey() { num="$1" if test "$num" -gt 23 then echo "'$num' isn't between 0 and 23." else code=$(( num + 232 )) tput setaf $code echo "Grey '$num' is $code." tput sgr0 fi } handle_color() { set -- $1 r=$1 ; g=$2 ; b=$3 for c in $r $g $b do if test "$c" -gt 5 then echo 'Must be between 0 and 5.' return fi done code=$(( 16 + 36 * r + 6 * g + b )) tput setaf $code echo "rgb($r/$g/$b) is $code." tput sgr0 } handle_code() { code="$1" tput setaf "$code" echo -n "Color number $code is" if test "$code" -lt 16 then adjust="$code" if test "$code" -eq 0 then echo 'grey.' else if test "$code" -ge 9 then echo -n ' light' adjust=$(( code - 8 )) fi case "$adjust" in 0) echo ' black.' ;; 1) echo ' red.' ;; 2) echo ' green.' ;; 3) echo ' yellow.' ;; 4) echo ' blue.' ;; 5) echo ' turquoise.' ;; 6) echo ' magenta.' ;; 7) echo ' white.' ;; esac fi elif test "$code" -lt 232 then adjust=$(( code - 16 )) echo " rgb($(( adjust / 36 ))/$(( adjust % 36 / 6 ))/$(( adjust % 6 )))." else echo " grey shade $(( code - 232 ))." fi tput sgr0 } main -- Download Intel® Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev___ tmux-users mailing list tmux-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/tmux-users
Re: set -g status-bg colour?
This one shows the numbers too: http://www.frexx.de/xterm-256-notes/data/xterm-colortest On Thu, Mar 11, 2010 at 06:42:55PM -0800, Micah Cowan wrote: > tilde wrote: > > Simple question: > > someone knows where i can find a list of colors code indexed 0-255? I > > can't find it anywhere! > > or maybe an alternative to this for say tmux how to set the color I want? > > There's tools/256colors.pl in the tmux source tree. It doesn't give the > indexes, but studying the sources was illuminating (at least, to me). > > I also whipped up a small shell script to help me find color values I > like. I've attached it here. > > -- > Micah J. Cowan > http://micah.cowan.name/ > -- > Download Intel® Parallel Studio Eval > Try the new software tools for yourself. Speed compiling, find bugs > proactively, and fine-tune applications for parallel performance. > See why Intel Parallel Studio got high marks during beta. > http://p.sf.net/sfu/intel-sw-dev > ___ > tmux-users mailing list > tmux-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/tmux-users -- Download Intel® Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev ___ tmux-users mailing list tmux-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/tmux-users
Re: set -g status-bg colour?
On 12/03/10 02:49 +, Nicholas Marriott wrote: >This one shows the numbers too: That was nice. Anyone know how those could be used like we use regular colors; i.e echo "\033[32m foo" in an 256-color-capable terminal? -- Download Intel® Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev ___ tmux-users mailing list tmux-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/tmux-users
Re: set -g status-bg colour?
trapd...@trapd00r.se wrote: > On 12/03/10 02:49 +, Nicholas Marriott wrote: >> This one shows the numbers too: > > That was nice. Anyone know how those could be used like we use regular > colors; i.e echo "\033[32m foo" in an 256-color-capable terminal? Read the source for those scripts? They're very straightforward. The one Nicholas sent actually has the correct sequences in-line as part of the source-code (so use an editor that will display them, and not render them). -- Micah J. Cowan http://micah.cowan.name/ -- Download Intel® Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev ___ tmux-users mailing list tmux-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/tmux-users
saving layout.
Maybe not so simple as the previous question ;) well, is there some trick for save some personalized panes layout of tmux? Like: i fire up tmux and he is already set up with my favorite panes layout and the right application in them. Ok, when reattaching he keep the windows splitted -- screen is not able to do it, even with patches :)) -- but, if i fire up a brand new session? Sorry for my lacky english :S M -- Download Intel® Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev ___ tmux-users mailing list tmux-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/tmux-users
Re: saving layout.
tilde ha scritto: > Maybe not so simple as the previous question ;) > well, is there some trick for save some personalized panes layout of > tmux? Like: i fire up tmux and he is already set up with my favorite > panes layout and the right application in them. > Ok, when reattaching he keep the windows splitted -- screen is not able > to do it, even with patches :)) -- but, if i fire up a brand new session? > > Sorry for my lacky english :S > > M > > -- > Download Intel® Parallel Studio Eval > Try the new software tools for yourself. Speed compiling, find bugs > proactively, and fine-tune applications for parallel performance. > See why Intel Parallel Studio got high marks during beta. > http://p.sf.net/sfu/intel-sw-dev > ___ > tmux-users mailing list > tmux-users@lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/tmux-users > I've tried somethink like that: new vim splitw -p 25 irssi splitw -h -p 50 mocp neww neww neww select-window -t 1 but it seems to not work. Simply start with a single-window single-panel session, with bash inside =\ -- Download Intel® Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev ___ tmux-users mailing list tmux-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/tmux-users