Sponsored Content
Full Discussion: xemacs colors for C files
Top Forums UNIX for Dummies Questions & Answers xemacs colors for C files Post 101345 by RTM on Tuesday 7th of March 2006 10:00:55 AM
Old 03-07-2006
Following found at burtleburtle.net

Quote:
How to Change Colors in XEmacs

(by Justine Ehlers)
About Colors:

The default background that XEmacs comes with "out of the box" is gray. However, a gray background makes it harder to see the lighter colors. That's why I changed the backgrounds to black.

Note: If you choose "Save Options" from the "Options" pulldown, your colors are NOT saved (everything else is). XEmacs 20.3 moved "officially" changing and saving the colors to the "Customize" area. See below, #2 on "How to Change Colors".
How to Change Colors:

1. Quick, No Changes Are Saved
* Go to the "Options" pulldown (top of XEmacs), select "Browse Faces". This gives you a list of what you can change.
* Click on the foreground color you'd like to change.
* Type "Shift key"f for F.
* Notice at the bottom of your XEmacs that it'll prompt you for the new color. Backspace over the color name.
* You can either type a color name or hit the "tab key". Hitting the "tab key" gives you a five page list of colors you can choose. Choose a color. XEmacs updates the colors.
* You can change the background color. Click on the background color you'd like to change.
* Type "Shift key"b for B.
* Proceed the same as for the foreground color.
2. Slower, Changes Are Saved
* Go to the "Options" pulldown (top of XEmacs), select "Customize" then "Face..."
* Notice at the bottom of your XEmacs that it'll prompt you to choose what you want to change. "Customize face: (default all)" Hit the "Enter key" to choose all. (If you know the name, you can type the name to just change the one color.)
* You get a list of what you can change. Middle click on [Show] to see the items to change.
* Select by clicking on the [ ] at the beginning of the line. Hit "Enter key" to select it. Hit "Enter key" to deselect. (The "Enter key" is a toggle.)
* Backspace over the color.
* Choose another one. Notice it'll show you immediately what it looks like.
* If you like it, you can save one of two ways: (1) Go back to the top and click on the "Save" button. (2) Go to the "Custom" pulldown (top of XEmacs) and choose "Save".
Note: since I don't use xemacs, I don't know if this will change more than the foreground/background colors.
 

10 More Discussions You Might Find Interesting

1. UNIX Desktop Questions & Answers

colors

Hello, I am somewhat new to linux. I just installed Red Hat 7.2 and when I try to load gnome or KDE in colors above 8bit it will kind of lock up and display some wierd scrambled cable look. I have an ATI Radeon 7000. I check out my monitor settings they are fine. Is it the graphics card? I set my... (1 Reply)
Discussion started by: Sage3k
1 Replies

2. Programming

xemacs

Hi Folks, Would like to download the xemacs editor for C. I searched the xemacs site but i donno the exact place of download. Can any one pass the URL or way to go thru and download the editor? Thanks in Advance, Nisha (4 Replies)
Discussion started by: Nisha
4 Replies

3. UNIX for Dummies Questions & Answers

Xemacs and emacs

Hi guys What is the difference between Xemacs and emacs. I assumed Xemacs runs only in X11. What about in Linux on KDE? Am I running Xemacs or emacs. Well it says emacs though. What is the advantage of one over other? What can I run on OS X ? SS (5 Replies)
Discussion started by: saurya_s
5 Replies

4. UNIX for Dummies Questions & Answers

display ^M in xemacs

Sorry, this has probably been posted before, but my searches turn up nothing, and I have tried. using a cygwin distro of xemacs The default is NOT to display CR characters (I expect to see them as ^M). I want to change this so they do show up. Can you tell me please, what command to issue?... (0 Replies)
Discussion started by: scott1256ca
0 Replies

5. Shell Programming and Scripting

Need help with make file for etags to use it with xemacs

I am trying to generate tags for .cpp & .h source code. Here is the structure of the codes Root/X/src/ Root/X/include/ Root/Y/src/ Root/Y/include/ How do I generate TAGs from ROOT directory such that, when I am working on code under X/src I can access function defined in Y/src/ area? ... (0 Replies)
Discussion started by: sofiandros
0 Replies

6. Red Hat

enable xemacs buffer tabs

I need some help configuring xemacs to enable buffer tabs. please, anybody, could walk me through on how to configure xemacs for this. Thank You. (1 Reply)
Discussion started by: etcpasswd
1 Replies

7. UNIX for Dummies Questions & Answers

xemacs bindings help

Hi all , I would like to have a new binding so that if im having the cursur on a word, one shortcut click (say f3) whould find the next occurrence of the word in the text and so one. what is the right bind for it ? I tried but its wrong. thanks ! Zvika (1 Reply)
Discussion started by: zismad
1 Replies

8. UNIX for Advanced & Expert Users

About to give up on XEmacs 21.5.29

Folks, I am hoping someone out there can help me. I have been writing code for in-excess of 10 years. Throughout all this time I have used Xemacs. I have picked up bits of customizations here and there over the years, but would not profess to be anything of an expert in Lisp (or have a heavily... (3 Replies)
Discussion started by: petermc
3 Replies

9. UNIX for Dummies Questions & Answers

XEmacs compilation errors not understandable

Hi all! I am new to this forum. I have recently installed Cygwin and XEmacs on my laptop running Windows Vista. I am studing at the moment and the code I am creating is mainly for that purpose. I am trying to create the algorithm of Insertion sort. When I compile my code in XEmacs i get some... (1 Reply)
Discussion started by: BlueTower
1 Replies

10. UNIX for Dummies Questions & Answers

Replace and increment in xemacs 21.4

I am trying to replace and increment a lot of TEST_FONC_1 entries in my file with TEST_FONC_2 then TEST_FONC_3..... I'm trying to use replace regexp but it doesn't work I have tried replace _+ with _\,(1+ \#&) but it doesn't work. it find the entries but it replace it with the text... (4 Replies)
Discussion started by: Toug
4 Replies
TERMINAL_COLORS.D(5)                                             terminal-colors.d                                            TERMINAL_COLORS.D(5)

NAME
terminal-colors.d - Configure output colorization for various utilities SYNOPSIS
/etc/terminal-colors.d/[[name][@term].][type] DESCRIPTION
Files in this directory determine the default behavior for utilities when coloring output. The name is a utility name. The name is optional and when none is specified then the file is used for all unspecified utilities. The term is a terminal identifier (the TERM environment variable). The terminal identifier is optional and when none is specified then the file is used for all unspecified terminals. The type is a file type. Supported file types are: disable Turns off output colorization for all compatible utilities. enable Turns on output colorization; any matching disable files are ignored. scheme Specifies colors used for output. The file format may be specific to the utility, the default format is described below. If there are more files that match for a utility, then the file with the more specific filename wins. For example, the filename "@xterm.scheme" has less priority than "dmesg@xterm.scheme". The lowest priority are those files without a utility name and terminal iden- tifier (e.g. "disable"). The user-specific $XDG_CONFIG_HOME/terminal-colors.d or $HOME/.config/terminal-colors.d overrides the global setting. EXAMPLES
Disable colors for all compatible utilities: touch /etc/terminal-colors.d/disable Disable colors for all compatible utils on a vt100 terminal: touch /etc/terminal-colors.d/@vt100.disable Disable colors for all compatible utils except dmesg(1): touch /etc/terminal-colors.d/disable touch /etc/terminal-colors.d/dmesg.enable DEFAULT SCHEME FILES FORMAT
The following statement is recognized: name color-sequence The name is a logical name of color sequence (for example "error"). The names are specific to the utilities. For more details always see the COLORS section in the man page for the utility. The color-sequence is a color name, ASCII color sequences or escape sequences. Color names black, blink, blue, bold, brown, cyan, darkgray, gray, green, halfbright, lightblue, lightcyan, lightgray, lightgreen, lightmagenta, lightred, magenta, red, reset, reverse, and yellow. ANSI color sequences The color sequences are composed of sequences of numbers separated by semicolons. The most common codes are: 0 to restore default color 1 for brighter colors 4 for underlined text 5 for flashing text 30 for black foreground 31 for red foreground 32 for green foreground 33 for yellow (or brown) foreground 34 for blue foreground 35 for purple foreground 36 for cyan foreground 37 for white (or gray) foreground 40 for black background 41 for red background 42 for green background 43 for yellow (or brown) background 44 for blue background 45 for purple background 46 for cyan background 47 for white (or gray) background Escape sequences To specify control or blank characters in the color sequences, C-style -escaped notation can be used: a Bell (ASCII 7)  Backspace (ASCII 8) e Escape (ASCII 27) f Form feed (ASCII 12) Newline (ASCII 10) Carriage Return (ASCII 13) Tab (ASCII 9) v Vertical Tab (ASCII 11) ? Delete (ASCII 127) \_ Space \ Backslash () ^ Caret (^) # Hash mark (#) Please note that escapes are necessary to enter a space, backslash, caret, or any control character anywhere in the string, as well as a hash mark as the first character. For example, to use a red background for alert messages in the output of dmesg(1), use: echo 'alert 37;41' >> /etc/terminal-colors.d/dmesg.scheme Comments Lines where the first non-blank character is a # (hash) are ignored. Any other use of the hash character is not interpreted as introducing a comment. FILES
$XDG_CONFIG_HOME/terminal-colors.d $HOME/.config/terminal-colors.d /etc/terminal-colors.d ENVIRONMENT
TERMINAL_COLORS_DEBUG=all enables debug output. COMPATIBILITY
The terminal-colors.d functionality is currently supported by all util-linux utilities which provides colorized output. For more details always see the COLORS section in the man page for the utility. AVAILABILITY
terminal-colors.d is part of the util-linux package and is available from Linux Kernel Archive <https://www.kernel.org/pub/linux/utils /util-linux/>. util-linux January 2014 TERMINAL_COLORS.D(5)
All times are GMT -4. The time now is 11:20 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy