![]() This means that I can't rely on the default loading of ~/.Xresources: I call xrdb -cpp m4 ~/path/to/my/Xresources explicitly from my. #include ".config/x11/xterm-common-Xresources" Xresources file, include xterm-common.Xresources twice, once for each class name. Put the common definitions for XTerm and UXTerm in a separate file xterm-common.Xresources. However, you can solve your problem with cpp using include files. In particular, you can't have a line break in the expansion of a cpp macro, so you can't define a macro to expand to multiple X resources. Unfortunately, cpp is not very convenient for the X resource syntax. xrdb (the utility that loads X resources) uses the C preprocessor ( cpp) by default. The solution is to rely on the preprocessor. *XTerm means “ XTerm at any level of the hierarchy”, not “any name that ends with XTerm”. Wildcards match components, not individual characters inside components. In general, you can't do this with the basic X resource syntax alone. In this specific case, you could perhaps use ?.VT100.background: Blackīecause in practice, xterm is the only application with a VT100 widget. You can get two tiers of configuration this way, but if you want three tiers, this won't help. ![]() It will use the fonts that the XTerm file gives for the pattern. Making the wide fonts associated with VT100.font in this file allows uxterm to skip that step. With these definitions, xterm -name light has a white background and has scroll bars. If the original 'VT100.font' is not wide, and xterm can load the, it will use that. ** Original post had an extraneous error: as John pointed out OS X’s ‘ls’ does not handle the “–color=auto” option.If you want to have multiple XTerm configurations and choose one at invocation time, you can use a single class and multiple instance names: : Black Hopefully this provides some respite for your eyes! Remember, you can do the same for emacs (in your. H bold light grey looks like bright white If you want to explore more colors, you will need to use the standard ANSI colors: a blackĪ bold black, usually shows up as dark grey directory writable to others, without sticky bit directory writable to others, with sticky bitġ1. If you are curious, the eleven filetypes are: 1. This results in green filenames, bold-green executables, blue directories, yellow symlinks, and so on (see above screenshot) I prefer not to use a background color for normal filetypes. Which specifies eleven sets of colors (11x fb). bash_profile: export LSCOLORS=Gxfxbxdxcxegedabagacad Then to define the foreground and background colors for eleven different filetypes, you need to redefine the LSCOLORS (LS_COLORS for UNIX) parameter in the. cshrc for both if you use the C shell)**: export CLICOLOR=TRUEĪdding a ‘-F’ flag to the alias will result in a slash (‘/’) after directory names. To change the color coding, first you need to make sure color option is turned on add the following line to. While you are at it, you might want to change the colors for the ‘ls’ commands as well for two different reasons: (i) the defaults do not work well with your new green-on-black xTerminal and (ii) the right color coding instantly identifies the file type. For Terminal.app, you can simply use the GUI preferences it does not read. Xdefaults does not exist in your home directory, feel free to create one. Note I changed the cursor and pointer properties as well. Xdefaults, which lives in your home directory: xterm*Background: black One way to change the colors on your Mac’s X11 is to add the following lines to your. The same is true for light text on dark background, which has been the fad for some web designers these days please avoid either combination! As far as the eyes are concerned, green/yellow text on a black background (or off-white on dark gray) is the most soothing for the eyes. Hence, even while providing the highest contrast, this color combination tends to strain your eyes. In addition, your eyes have to constantly adjust between the two extremes of the color spectrum. Unfortunately, the default for the xTerminal (or most applications) is black text on white background which means you are staring at white, i.e., light, most of the time. ![]() ![]() As our eyes spend most of our days looking at the xTerminal (xTerm, xgTerm, uxTerm, or Terminal.app) any relief is always welcome. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |