Examples

It can be very useful to use xterm colors to indicate which is your current user ID. As an example, configure the ~/.xtermcontrol of the login user to:

foreground="black"

and the ~root/.xtermcontrol to:

foreground="red"

Now the red foreground color works as a reminder of the privileges when logged into the root account.

To change back to current ID preferences after a session, include the following code snippet in the .bashrc shell initialization file of the effected accounts.

# .bashrc example

## customize this and put it in ~/.bashrc to control the xterm

## change preferences to ~/.xtermcontrol defaults
xtermcontrol

## change preferences back to ~/.xtermcontrol defaults after 'su' session
su() {
   command su "$@"
   xtermcontrol
}

## change preferences back to ~/.xtermcontrol defaults after 'ssh' session
ssh() {
   command ssh "$@"
   xtermcontrol
}

