diff --git a/Tips-and-Tricks.textile b/Tips-and-Tricks.textile index 0970952..b7c84c0 100644 --- a/Tips-and-Tricks.textile +++ b/Tips-and-Tricks.textile @@ -83,4 +83,48 @@ _todo() complete -F _todo todo -Now you can type $todo ad[tab] and bash'll autocomplete to $todo add \ No newline at end of file +Now you can type $todo ad[tab] and bash'll autocomplete to $todo add + +*High Color Support* +xterm-based terminals, including Putty for Windows, support 256 colors instead of just 16. Here are some sample colors (including backgrounds) that you can paste into your config file right before the PRIORITY COLORS section. Check http://www.frexx.de/xterm-256-notes/ for a hex-to-xterm converter to get exactly the color you want. + +
+### === HIGH-COLOR === compatible with most terms including putty +### for windows... use colors that don't make your eyes bleed :) +export PINK='\\033[38;5;211m' +export ORANGE='\\033[38;5;203m' +export SKYBLUE='\\033[38;5;111m' +export MEDIUMGREY='\\033[38;5;246m' +export LAVENDER='\\033[38;5;183m' +export TAN='\\033[38;5;179m' +export FOREST='\\033[38;5;22m' +export MAROON='\\033[38;5;52m' +export HOTPINK='\\033[38;5;198m' +export MINTGREEN='\\033[38;5;121m' +export LIGHTORANGE='\\033[38;5;215m' +export LIGHTRED='\\033[38;5;203m' +export JADE='\\033[38;5;35m' +export LIME='\\033[38;5;154m' +### background colors +export PINK_BG='\\033[48;5;211m' +export ORANGE_BG='\\033[48;5;203m' +export SKYBLUE_BG='\\033[48;5;111m' +export MEDIUMGREY_BG='\\033[48;5;246m' +export LAVENDER_BG='\\033[48;5;183m' +export TAN_BG='\\033[48;5;179m' +export FOREST_BG='\\033[48;5;22m' +export MAROON_BG='\\033[48;5;52m' +export HOTPINK_BG='\\033[48;5;198m' +export MINTGREEN_BG='\\033[48;5;121m' +export LIGHTORANGE_BG='\\033[48;5;215m' +export LIGHTRED_BG='\\033[48;5;203m' +export JADE_BG='\\033[48;5;35m' +export LIME_BG='\\033[48;5;154m' +### extra attributes +export UNDERLINE='\\033[4m' + +### sample of combining foreground and background +# export PRI_A=$HOTPINK$MEDIUMGREY_BG$UNDERLINE + ++
\ No newline at end of file