Sponsored Content
Top Forums UNIX for Dummies Questions & Answers set background/foreground color in .profile Post 80570 by dvella on Tuesday 9th of August 2005 09:13:19 PM
Old 08-09-2005
set background/foreground color in .profile

I am using a telnet session (VT100) and need to modify my .profile so that it will set the color of the telnet session. I am not using Xterm (ie: can't use .Xdefaults). I am able to change the colors via menu's but need to preset in .profile. Is this possible??? Can't find anything at all on how to do it. Please help Smilie
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

problems with ctrl-z, to switch foreground, background

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

how to get background job to foreground

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

Background and Foreground of a process within a script

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

how to set background color in Unix terminal

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 is the diff b/w background and foreground process

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

Send Foreground job to background redirecting output

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

How can put a background process to the foreground

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

Move shell script from foreground to background

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

How to change the background color in the init 3 mode(not line color)

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

[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
XmInstallImage(library call)											      XmInstallImage(library call)

NAME
XmInstallImage -- A pixmap caching function that adds an image to the image cache SYNOPSIS
#include <Xm/Xm.h> Boolean XmInstallImage( XImage * image, char * image_name); DESCRIPTION
XmInstallImage stores an image in an image cache that can later be used to generate a pixmap. Part of the installation process is to extend the resource converter used to reference these images. The resource converter is given the image name so that the image can be ref- erenced in a .Xdefaults file. Since an image can be referenced by a widget through its pixmap resources, it is up to the application to ensure that the image is installed before the widget is created. image Points to the image structure to be installed. The installation process does not make a local copy of the image. Therefore, the application should not destroy the image until it is uninstalled from the caching functions. image_name Specifies a string that the application uses to name the image. After installation, this name can be used in .Xdefaults for ref- erencing the image. A local copy of the name is created by the image caching functions. The image caching functions provide a set of eight preinstalled images. These names can be used within a .Xdefaults file for generating pixmaps for the resource for which they are provided. +---------------+---------------------------------------------------+ |Image Name | Description | +---------------+---------------------------------------------------+ |background | A tile of solid background | +---------------+---------------------------------------------------+ |25_foreground | A tile of 25% foreground, 75% background | +---------------+---------------------------------------------------+ |50_foreground | A tile of 50% foreground, 50% background | +---------------+---------------------------------------------------+ |75_foreground | A tile of 75% foreground, 25% background | +---------------+---------------------------------------------------+ |horizontal | A tile of horizontal lines of the two colors | +---------------+---------------------------------------------------+ |vertical | A tile of vertical lines of the two colors | +---------------+---------------------------------------------------+ |slant_right | A tile of slanting lines of the two colors | +---------------+---------------------------------------------------+ |slant_left | A tile of slanting lines of the two colors | +---------------+---------------------------------------------------+ |menu_cascade | A tile of an arrow of the foreground color | +---------------+---------------------------------------------------+ |menu_checkmark | A tile of a checkmark of the foreground color | +---------------+---------------------------------------------------+ |menu_dash | A tile of one horizontal line of the foreground | | | color | +---------------+---------------------------------------------------+ +---------------+---------------------------------------------------+ RETURN
Returns True when successful; returns False if NULL image, NULL image_name, or duplicate image_name is used as a parameter value. RELATED
XmUninstallImage(3), XmGetPixmap(3), and XmDestroyPixmap(3). XmInstallImage(library call)
All times are GMT -4. The time now is 04:34 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy