Sponsored Content
Full Discussion: xterm colors
Special Forums UNIX Desktop Questions & Answers xterm colors Post 15579 by blica777 on Friday 15th of February 2002 11:19:03 PM
Old 02-16-2002
Question xterm colors

I'm a new user to unix and I want to be able to pick and choose different xterm colors via 3rd botton menu. I'm currently pico'd into my .fvwm2rc file and this is what I have under my bottons:

Please advise


############
# Button 1 #
###########################################################################
# #
# We set things up so that if we click on the root-window with our left #
# mouse button, we get a list of window operations (move, resize, etc.) #
# This is also where we logout. #
# #
###########################################################################

AddToMenu Button1 "System Functions" Title
+ "Window Operations" Popup "WindowOps" Nop
+ "Window List" Module FvwmWinList
+ "" Nop
+ "Redraw Screen" Exec xrefresh
+ "Restart Fvwm" Restart fvwm2
+ "Logout" Quit

############
# Button 3 #
###########################################################################
# #
# Button3 (The right mouse button) contains a list of useful programs #
# (xterm, netscape, etc.) #
# #
# You'll notice that the "Rlogin" menu uses an Fvwm "Module" to pop up a #
# fill-in form that passes arguments to the "rlogin" command. This is #
# defined later on in the lines that start with "*Rlogin" #
# #
###########################################################################

AddToMenu Button3 "Utilities" Title
+ "Acroread" Exec acroread
+ "XTerm" Exec xterm -sb -sl 40000 &
+ "Aterm" Exec Aterm -tr -sh 100 -tint blue -sb -sl 2000 -bg 1 -fg 15 -fn 8x16
"Rlogin" Module FvwmForm Rlogin
+ "Netscape" Goto-or-Start Netscape
+ "Remedy" Goto-or-Start aruser
+ "Calculator" Exec xcalc
+ "Man Pages" Exec xman
+ "" Nop
+ "Dept Utils" Popup "DeptUtils" Nop
+ "" Nop
+ "XLock" Exec xlock -mode random &
+ "Logout" Quit
 

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. Linux

xterm font colors - configuration question?

When I telnet (ssh) over to my Fedora system, I find the colors horrible. For instance, regular files are white text, which is fine, but directories show up as dark blue which is virtually invisible against the black background). Additionally, when using vi, I find the colors great doing perl... (3 Replies)
Discussion started by: ripley
3 Replies

3. Linux

linux colors

what dog gone file is setting these colors! i dont see it in bashrc or bash_profile!! anyone know? alias cp='cp -i' alias l.='ls -d .* --color=tty' alias ll='ls -l --color=tty' alias ls='ls --color=tty' alias mv='mv -i' alias rm='rm -i' alias vi='vim' alias which='alias | /usr/bin/which... (1 Reply)
Discussion started by: BG_JrAdmin
1 Replies

4. UNIX for Dummies Questions & Answers

Directory colors

Hey guys, When I used a Solaris box way back I had directory, file , symbolic link colors, etc... I can't seem to find the .dircolors file and how i set it up for bash on Solaris... anyone remember how to do it? Thanks! (2 Replies)
Discussion started by: kingdbag
2 Replies

5. UNIX for Dummies Questions & Answers

Colors

Is there a way with the bourne shell to have different types of files show up a different color when you do ls? (1 Reply)
Discussion started by: resullivan
1 Replies

6. Shell Programming and Scripting

using colors in mailx

I want to use notify_fail () { echo " " >> ${MSG} echo " Script failed n">> ${MSG} cat ${MSG}|mailx -s "t1.ksh Success: "name@domain.com" exit 1 } I want script failed to show in Red or different colors in the email that i sent to name@domain.com I serached several sites and also... (1 Reply)
Discussion started by: konark
1 Replies

7. HP-UX

Vim colors in HP-UX

I am using xterm on my HP-UX system (11i). Color is working in xtrem, i can see that with the -color option on ls. When I use vim's syntax high lighting, instead of colors, it uses underline and bold (which looks horrible). I added the following if &term =~ "xterm" if has("terminfo") ... (2 Replies)
Discussion started by: kheisler
2 Replies

8. Red Hat

Sometimes my xterm colors get inverted

I don't know exactly when or why, maybe running less or some command, my white text on a black background gets inverted and all the text looks like it is "selected", it is white background with black text. it is very annoying. I found this solution.;. export TERM=vt100 vi This... (0 Replies)
Discussion started by: srhadden
0 Replies

9. UNIX for Dummies Questions & Answers

Colors not being Interpreted

Hello, I am having an issue with ANSI colors in Redhat linux. I am running a script where the colours have been set very early on as follows: # Reset Color_Off='\033 Later in the script these are used to color define sections of output by reffering to them using: ${White} blah blah blah... (4 Replies)
Discussion started by: Pedro72
4 Replies

10. Shell Programming and Scripting

[Solved] Background and foreground colors for xterm

Hi all, I used the code given by cfajohnson on this forum to generate background colors for xterm. Thanks cfajohnson... (sorry wasnt allowed to past the complete url) n=200 ## adjust to taste: higher value, lighter background n1=$(( 256 - $n )) bg=$( printf "#%x%x%x\n" $(( $RANDOM % $n1 +... (2 Replies)
Discussion started by: carv_13
2 Replies
FvwmAuto(1)							   Fvwm Modules 						       FvwmAuto(1)

NAME
FvwmAuto - the fvwm auto-raise module SYNOPSIS
Module FvwmAuto Timeout [-passid] [-menter|-menterleave|-mfocus] [EnterCommand [LeaveCommand]] FvwmAuto can only be invoked by fvwm. Command line invocation of the FvwmAuto will not work. DESCRIPTION
The FvwmAuto module is most often used to automatically raise focused windows. INVOCATION
The correct syntax is: Module FvwmAuto Timeout [-passid] [-menter|-menterleave|-mfocus] [EnterCommand [LeaveCommand]] AddToMenu Modules + "Auto Raise (300 ms)" Module FvwmAuto 300 + "Auto Raise/Lower" Module FvwmAuto 300 "Silent Raise" "Silent Lower" The Timeout argument is required. It specifies how long a window must retain the keyboard input focus before the command is executed. The delay is measured in milliseconds, and any integer greater than zero is valid. If the literal option -passid is given, the window id of the window just entered or left is appended to the command that is sent to fvwm. This can be used with the WindowId command of fvwm. The options -menter, -menterleave and -mfocus influence the actions FvwmAuto reacts to. No more than one of the options can be chosen. In -mfocus mode, FvwmAuto raises the window that has the focus. In -menter mode, FvwmAuto raises the window under the pointer when the pointer enters a window. The LeaveCommand is executed on the window that was below the pointer before it entered the new window. When the pointer leaves a window and enters the root window, the EnterCommand is executed too, but without a window to operate on. In -menterleave mode, FvwmAuto works just like in -menter mode, but the LeaveCommand is also executed if the pointer moves out of a window but does not enter a new window. The latter two modes of operation are useful with windows that do not accept the focus. Note: -menterleave mode can interfere with popup windows of some applications. One example is the zoom menu of Ghostview. Please do not complain about this to us - it is a bug in Ghostview. EnterCommand and LeaveCommand are optional. EnterCommand is executed Timeout milliseconds after a window gets the input focus, LeaveCom- mand is executed Timeout milliseconds after the window has lost focus. Note that you always should use the 'Silent' keyword before the command itself. FvwmAuto prepends "Silent " to the command string on its own if yor forget this. Without this prefix fvwm would ask you for a window to act on if the window has died before the command sent by FvwmAuto has been processed by fvwm. This can for example happen with popup menus. "Silent Raise" is the default for EnterCommand, but any fvwm function is allowed. I would not use "Close" or "Destroy" with a low timeout, though. The LeaveCommand can be handy for a tidy desktop. Experiment with: Module FvwmAuto 0 Nop "Silent Lower" Module FvwmAuto 0 Nop "Silent Iconify" An example for auto raising windows with ClickToFocus: Style * ClickToFocus FvwmAuto 0 -menter "Silent Raise" An example for auto raising and lowering only some windows: To start FvwmAuto: FvwmAuto 0 -passid -menter "Silent selective_raiselower raise" "Silent selective_raiselower lower" And put this in your .fvwm2rc: AddToFunc selective_raiselower + I WindowId $1 (FvwmIconMan) $0 + I WindowId $1 (FvwmButtons) $0 + I WindowId $1 (xclock) $0 More complex example (three FvwmAuto's are running): DestroyFunc RestoreIconified AddToFunc RestoreIconified + I Current (Iconic) Iconify false DestroyFunc RegisterFocus AddToFunc RegisterFocus + I Exec date +"%T $n focused" >>/tmp/focus-stats.txt DestroyFunc RegisterUnfocus AddToFunc RegisterUnfocus + I Exec date +"%T $n unfocused" >>/tmp/focus-stats.txt KillModule FvwmAuto Module FvwmAuto 250 Raise Nop Module FvwmAuto 800 RestoreIconified Nop Module FvwmAuto 0 RegisterFocus RegisterUnfocus NOTES
There is a special Raise/Lower support in FvwmAuto. It was added to improve Raise/Lower callbacks, since most of FvwmAuto usages is auto- raising or auto-lowering. This improvement includes locking on M_RAISE_WINDOW and M_LOWER_WINDOW packets and not raising/lowering explic- itly raised windows. The special Raise/Lower support is enabled only when either EnterCommand or LeaveCommand contain substring "Raise" or "Lower". You can use this fact to enable/disable any special support by renaming these commands, if FvwmAuto does not automatically do want you expect it to do. Using FvwmAuto in conjunction with EdgeCommand can be even more powerful. There is a short example in the fvwm man page. AUTHOR
FvwmAuto just appeared one day, nobody knows how. FvwmAuto was simply rewritten 09/96, nobody knows by whom. 3rd Berkeley Distribution 09 May 2010 (2.5.30) FvwmAuto(1)
All times are GMT -4. The time now is 02:31 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy