XTerm-col.ad revision d522f475
1d522f475Smrg! $XTermId: XTerm-col.ad,v 1.20 2006/06/24 14:57:29 tom Exp $ 2d522f475Smrg! $XFree86: xc/programs/xterm/XTerm-col.ad,v 3.7 2005/09/18 23:48:12 dickey Exp $ 3d522f475Smrg 4d522f475Smrg#include "XTerm" 5d522f475Smrg 6d522f475Smrg*VT100*colorMode: on 7d522f475Smrg*VT100*boldColors: on 8d522f475Smrg*VT100*dynamicColors: on 9d522f475Smrg 10d522f475Smrg! Uncomment this for "white" text on a dark background. 11d522f475Smrg!*VT100*foreground: gray90 12d522f475Smrg!*VT100*background: black 13d522f475Smrg 14d522f475Smrg! - OR - 15d522f475Smrg! Uncomment this for black text on a "white" background. 16d522f475Smrg!*VT100*foreground: black 17d522f475Smrg!*VT100*background: gray90 18d522f475Smrg 19d522f475Smrg! - OR - 20d522f475Smrg! leave the foreground/background colors alone (at the mercy of your desktop 21d522f475Smrg! designer). 22d522f475Smrg 23d522f475Smrg! Color the popup/pulldown menu border to match the text widget's foreground. 24d522f475Smrg!*SimpleMenu*borderColor: gray15 25d522f475Smrg 26d522f475Smrg! Uncomment this to use color for underline attribute 27d522f475Smrg!*VT100*colorULMode: on 28d522f475Smrg*VT100*colorUL: yellow 29d522f475Smrg 30d522f475Smrg!*VT100*italicULMode: on 31d522f475Smrg 32d522f475Smrg! Uncomment this to disable underlining, e.g., if colorULMode is set. 33d522f475Smrg!*VT100*underLine: off 34d522f475Smrg 35d522f475Smrg! Uncomment this to use color for the bold attribute 36d522f475Smrg!*VT100*colorBDMode: on 37d522f475Smrg*VT100*colorBD: white 38d522f475Smrg 39d522f475Smrg! Uncomment this to use the bold/underline colors in preference to other colors 40d522f475Smrg!*VT100*colorAttrMode: on 41d522f475Smrg 42d522f475Smrg! These are the 8 ANSI colors and their bright equivalents. Depending on 43d522f475Smrg! other resource settings, xterm may use the bright colors when displaying 44d522f475Smrg! bold text (see the boldColors resource). 45d522f475Smrg*VT100*color0: black 46d522f475Smrg*VT100*color1: red3 47d522f475Smrg*VT100*color2: green3 48d522f475Smrg*VT100*color3: yellow3 49d522f475Smrg*VT100*color4: blue2 50d522f475Smrg*VT100*color5: magenta3 51d522f475Smrg*VT100*color6: cyan3 52d522f475Smrg*VT100*color7: gray90 53d522f475Smrg*VT100*color8: gray50 54d522f475Smrg*VT100*color9: red 55d522f475Smrg*VT100*color10: green 56d522f475Smrg*VT100*color11: yellow 57d522f475Smrg*VT100*color12: rgb:5c/5c/ff 58d522f475Smrg*VT100*color13: magenta 59d522f475Smrg*VT100*color14: cyan 60d522f475Smrg*VT100*color15: white 61d522f475Smrg 62d522f475Smrg! Disclaimer: there are no standard colors used in terminal emulation. 63d522f475Smrg! 64d522f475Smrg! The choice for color4 and color12 is a tradeoff between contrast, depending 65d522f475Smrg! on whether they are used for text or backgrounds. Note that either color4 or 66d522f475Smrg! color12 would be used for text, while only color4 would be used for a 67d522f475Smrg! background. These are treated specially, since the luminosity of blue is 68d522f475Smrg! only about half that of red/green, and is typically not accounted for in the 69d522f475Smrg! RGB scheme. 70d522f475Smrg! 71d522f475Smrg! Blue text on a black background should be readable. 72d522f475Smrg! Blue backgrounds should not be "too" bright. 73d522f475Smrg! 74d522f475Smrg! Originally color4/color12 were set to the names blue3/blue 75d522f475Smrg!*VT100*color4: blue3 76d522f475Smrg!*VT100*color12: blue 77d522f475Smrg! 78d522f475Smrg! They are from rgb.txt respectively: 79d522f475Smrg! 0 0 205 blue3 80d522f475Smrg! 0 0 255 blue 81d522f475Smrg! However, blue3 is not readable on a black background. 82d522f475Smrg! 83d522f475Smrg! Another choice was from the Debian settings: 84d522f475Smrg!*VT100*color4: DodgerBlue1 85d522f475Smrg!*VT100*color12: SteelBlue1 86d522f475Smrg! 87d522f475Smrg! From rgb.txt: 88d522f475Smrg! 30 144 255 DodgerBlue1 89d522f475Smrg! 99 184 255 SteelBlue1 90d522f475Smrg! 91d522f475Smrg! Some users object to this choice because the background (color4) is brighter 92d522f475Smrg! than they are accustomed. Others point out that the different weights for 93d522f475Smrg! the red/green components make it appear to be not really blue. Finally, it 94d522f475Smrg! provides poor contrast against color13 and color14. 95d522f475Smrg! 96d522f475Smrg! The current choice uses equal weights for red/green (effectively adding a 97d522f475Smrg! gray to the result). It is brighter than the original choice, and provides 98d522f475Smrg! more contrast between color12 and color13, color14 than SteelBlue1 did. 99d522f475Smrg! Contrast of color4 against black is slightly improved over the original. 100d522f475Smrg! 101d522f475Smrg! Some refinement is certainly possible (you are welcome to try) -TD 102d522f475Smrg 103d522f475Smrg 104d522f475Smrg#if PLANES > 8 105d522f475Smrg! Color the popup menus and the menubar to match: 106d522f475Smrg*SimpleMenu*background: AntiqueWhite 107d522f475Smrg*SimpleMenu*foreground: gray15 108d522f475Smrg 109d522f475Smrg! Color the menubar to match: 110d522f475Smrg*Form.menubar.background: AntiqueWhite 111d522f475Smrg*Form.menubar*background: AntiqueWhite 112d522f475Smrg*Form.menubar.foreground: gray15 113d522f475Smrg*Form.menubar*foreground: gray15 114d522f475Smrg*Form.background: AntiqueWhite 115d522f475Smrg*form.background: AntiqueWhite 116d522f475Smrg 117d522f475Smrg! The following two sections take advantage of new features in version 7 118d522f475Smrg! of the Athena widget library. Comment them out if you have a shallow 119d522f475Smrg! color depth. 120d522f475Smrg!*SimpleMenu*backgroundPixmap: gradient:vertical?dimension=350&start=gray90&end=gray60 121d522f475Smrg!*SimpleMenu*foreground: gray15 122d522f475Smrg 123d522f475Smrg!*VT100.scrollbar.thumb: vlines2 124d522f475Smrg!*VT100.scrollbar.width: 14 125d522f475Smrg!*VT100.scrollbar.background: gray60 126d522f475Smrg!*VT100.scrollbar.foreground: rgb:a/5/5 127d522f475Smrg!*VT100.scrollbar.borderWidth: 0 128d522f475Smrg!*VT100.scrollbar.displayList:\ 129d522f475Smrg!foreground gray90;\ 130d522f475Smrg!lines 1,-1,-1,-1,-1,1;\ 131d522f475Smrg!foreground gray60;\ 132d522f475Smrg!lines -1,0,0,0,0,-1 133d522f475Smrg#endif 134