1! $XTermId: XTerm-col.ad,v 1.22 2009/08/15 15:56:29 tom Exp $ 2! ----------------------------------------------------------------------------- 3! this file is part of xterm 4! 5! Copyright 2002-2006,2009 by Thomas E. Dickey 6! 7! All Rights Reserved 8! 9! Permission is hereby granted, free of charge, to any person obtaining a 10! copy of this software and associated documentation files (the 11! "Software"), to deal in the Software without restriction, including 12! without limitation the rights to use, copy, modify, merge, publish, 13! distribute, sublicense, and/or sell copies of the Software, and to 14! permit persons to whom the Software is furnished to do so, subject to 15! the following conditions: 16! 17! The above copyright notice and this permission notice shall be included 18! in all copies or substantial portions of the Software. 19! 20! THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS 21! OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 22! MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. 23! IN NO EVENT SHALL THE ABOVE LISTED COPYRIGHT HOLDER(S) BE LIABLE FOR ANY 24! CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, 25! TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE 26! SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 27! 28! Except as contained in this notice, the name(s) of the above copyright 29! holders shall not be used in advertising or otherwise to promote the 30! sale, use or other dealings in this Software without prior written 31! authorization. 32! ----------------------------------------------------------------------------- 33 34#include "XTerm" 35 36*VT100*colorMode: on 37*VT100*boldColors: on 38*VT100*dynamicColors: on 39 40! Uncomment this for "white" text on a dark background. 41!*VT100*foreground: gray90 42!*VT100*background: black 43 44! - OR - 45! Uncomment this for black text on a "white" background. 46!*VT100*foreground: black 47!*VT100*background: gray90 48 49! - OR - 50! leave the foreground/background colors alone (at the mercy of your desktop 51! designer). 52 53! Color the popup/pulldown menu border to match the text widget foreground. 54!*SimpleMenu*borderColor: gray15 55 56! Uncomment this to use color for underline attribute 57!*VT100*colorULMode: on 58*VT100*colorUL: yellow 59 60!*VT100*italicULMode: on 61 62! Uncomment this to disable underlining, e.g., if colorULMode is set. 63!*VT100*underLine: off 64 65! Uncomment this to use color for the bold attribute 66!*VT100*colorBDMode: on 67*VT100*colorBD: white 68 69! Uncomment this to use the bold/underline colors in preference to other colors 70!*VT100*colorAttrMode: on 71 72! These are the 8 ANSI colors and their bright equivalents. Depending on 73! other resource settings, xterm may use the bright colors when displaying 74! bold text (see the boldColors resource). 75*VT100*color0: black 76*VT100*color1: red3 77*VT100*color2: green3 78*VT100*color3: yellow3 79*VT100*color4: blue2 80*VT100*color5: magenta3 81*VT100*color6: cyan3 82*VT100*color7: gray90 83*VT100*color8: gray50 84*VT100*color9: red 85*VT100*color10: green 86*VT100*color11: yellow 87*VT100*color12: rgb:5c/5c/ff 88*VT100*color13: magenta 89*VT100*color14: cyan 90*VT100*color15: white 91 92! Disclaimer: there are no standard colors used in terminal emulation. 93! 94! The choice for color4 and color12 is a tradeoff between contrast, depending 95! on whether they are used for text or backgrounds. Note that either color4 or 96! color12 would be used for text, while only color4 would be used for a 97! background. These are treated specially, since the luminosity of blue is 98! only about half that of red/green, and is typically not accounted for in the 99! RGB scheme. 100! 101! Blue text on a black background should be readable. 102! Blue backgrounds should not be "too" bright. 103! 104! Originally color4/color12 were set to the names blue3/blue 105!*VT100*color4: blue3 106!*VT100*color12: blue 107! 108! They are from rgb.txt respectively: 109! 0 0 205 blue3 110! 0 0 255 blue 111! However, blue3 is not readable on a black background. 112! 113! Another choice was from the Debian settings: 114!*VT100*color4: DodgerBlue1 115!*VT100*color12: SteelBlue1 116! 117! From rgb.txt: 118! 30 144 255 DodgerBlue1 119! 99 184 255 SteelBlue1 120! 121! Some users object to this choice because the background (color4) is brighter 122! than they are accustomed. Others point out that the different weights for 123! the red/green components make it appear to be not really blue. Finally, it 124! provides poor contrast against color13 and color14. 125! 126! The current choice uses equal weights for red/green (effectively adding a 127! gray to the result). It is brighter than the original choice, and provides 128! more contrast between color12 and color13, color14 than SteelBlue1 did. 129! Contrast of color4 against black is slightly improved over the original. 130! 131! Some refinement is certainly possible (you are welcome to try) -TD 132 133 134#if PLANES > 8 135! Color the popup menus and the menubar to match: 136*SimpleMenu*background: AntiqueWhite 137*SimpleMenu*foreground: gray15 138 139! Color the menubar to match: 140*Form.menubar.background: AntiqueWhite 141*Form.menubar*background: AntiqueWhite 142*Form.menubar.foreground: gray15 143*Form.menubar*foreground: gray15 144*Form.background: AntiqueWhite 145*form.background: AntiqueWhite 146 147! The following two sections take advantage of new features in version 7 148! of the Athena widget library. Comment them out if you have a shallow 149! color depth. 150!*SimpleMenu*backgroundPixmap: gradient:vertical?dimension=350&start=gray90&end=gray60 151!*SimpleMenu*foreground: gray15 152 153!*VT100.scrollbar.thumb: vlines2 154!*VT100.scrollbar.width: 14 155!*VT100.scrollbar.background: gray60 156!*VT100.scrollbar.foreground: rgb:a/5/5 157!*VT100.scrollbar.borderWidth: 0 158!*VT100.scrollbar.displayList:\ 159!foreground gray90;\ 160!lines 1,-1,-1,-1,-1,1;\ 161!foreground gray60;\ 162!lines -1,0,0,0,0,-1 163#endif 164