08-12-2005
Check the list of ANSI escape codes here:
http://www.bluesock.org/~willg/dev/ansi.html
You just need to "echo" the appropriate codes to the screen. Note that any other command/program which uses ANSI color codes will reset your choices, so you may not get the desired affect by setting these in your profile.
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
my shell is /sbin/sh. i added stty susp '^Z' with the intention of being able to switch between foreground and background. but the result was strange.
i had 2 servers. one is sun the os is 8 and the other is hpux v11. both of them had the same shell. but on hpux, it works perfectly fine while... (9 Replies)
Discussion started by: yls177
9 Replies
2. Shell Programming and Scripting
hi, i am just wondering that wen we give the following code we make a process run in background...can the viceversa be performed?i.e can this be made foreground again
# sleep 75&
21751
# (4 Replies)
Discussion started by: sandilya
4 Replies
3. Shell Programming and Scripting
I'm not sure if it is even possible but I figured if it was someone here would know how to do it...
I am running a script which starts a bunch of processes in the background but there is one process I would like to bring back to the foreground when complete. Unfortunately the process that I... (2 Replies)
Discussion started by: ctruhn
2 Replies
4. Shell Programming and Scripting
Hi All,
how do I set in .profile file Unix terminal background color = BLUE ?
Please advice me.
:confused: (2 Replies)
Discussion started by: raghur77
2 Replies
5. UNIX for Advanced & Expert Users
What are all the difference between a Background and Foreground processes ?!
A Background process does not have access to STDIN and OUT.. What else ?
Is there any detailed description available somewhere ? (5 Replies)
Discussion started by: onequestion
5 Replies
6. Shell Programming and Scripting
I have many CPU intensive processes running and sometimes I run them in the foreground so that I can see what the output is.
I want to send that foreground process to the background, but also have it direct the output to a logfile.
I know to send something to the bg I do
Ctrl-z on the FG... (6 Replies)
Discussion started by: jhullbuzz
6 Replies
7. Shell Programming and Scripting
Hi, guys:
I am working on my own shell using c. When I put a process into the background, how can I put it back to the foreground using tcsetpgrp?
Thanks (3 Replies)
Discussion started by: tomlee
3 Replies
8. Shell Programming and Scripting
Hi,
Need an urgent help. I have a program executing in foreground. I need to execute it in background and also to remove terminal dependency.
Thanks In advance.
116@434 (7 Replies)
Discussion started by: 116@434
7 Replies
9. UNIX for Dummies Questions & Answers
Hello,
I am using RHEL 6.1 on VMware
I am searching for a way to change background color (not line by line color wich one can using tput command)
basically changing the color of the whole screen to white instead of the default black and changing font color to black and alos would like to... (2 Replies)
Discussion started by: Dexobox
2 Replies
10. Shell Programming and Scripting
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
LEARN ABOUT SUSE
xtermset
XTERMSET(1) General Commands Manual XTERMSET(1)
NAME
xtermset - change settings of an xterm
SYNOPSIS
xtermset [-option ...]
DESCRIPTION
xtermset allows you to change the characteristics of an xterm window from the command line. Most options have the same names as those that
you would give xterm at startup.
OPTIONS
-store [<filename>]
This option will save all the other command line options given to the filename. If filename is omitted then the options will be
written to ~/.xtermsetrc.
-default [<filename>]
This option will load options from the specified filename. If the filename is omitted then the options will be loaded from
~/.xtermsetrc. Options specified on the command line preceed those that are in the options file.
-f, -force
xtermset normally checks if you are using it on a correct terminal (xterm (derivative) or dtterm (derivative). With this option you
can override this checking.
-T string, -title string
Sets the window title.
-n string
Sets the icon name.
-fg color
Sets the VT100 foreground color.
-bg color
Sets the VT100 background color.
-mousefg color
Sets the mouse pointer foreground color.
-mousebg color
Sets the mouse pointer background color.
-tekfg color
Sets the Tektronix emulation window foreground color.
-tekbg color
Sets the Tektronix emulation window background color.
-cr color
Sets the text cursor color.
-hc color
Sets the color for highlighted (selected) text.
-fn font-spec, -font font-spec
Sets the font.
-geom geometry-spec, -geometry geometry-spec
Sets the window size and position; see X(1) for details.
FILES
~/.xtermsetrc
SEE ALSO
bash(1), xterm(1), X(1)
BUGS
-geom does not support offsets from the left or bottom of the screen. If the geometry-spec isn't in the correct format, the output will be
strange.
AUTHORS
Breyten Ernsting (bje@dds.nl)
Decklin Foster (decklin@home.com)
User Commands Dec 2000 XTERMSET(1)