08-24-2009
Hi.
I don't think that's possible!
The colour is a function of your terminal emulator software. You should change the colour using that.
9 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
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... (3 Replies)
Discussion started by: dvella
3 Replies
2. UNIX for Dummies Questions & Answers
Hi,
I am new to unix.
How can i change the background color in vi?
Thank you.
-tictactoe (1 Reply)
Discussion started by: tictactoe
1 Replies
3. HP-UX
hello,
i'm a linux zealot (fedora), so i know a some about unix. the company i work for uses HP-UX though and there are a few quirks i'd like smooth out by making them work more like my beloved redhat type systems...=)
right now they have all users using ksh and completion is done by hitting... (4 Replies)
Discussion started by: clockworks
4 Replies
4. Shell Programming and Scripting
Hi,
I am trying to write a python program which changes background color on click of button. However i am stuck up. Instead of changing the color currently it is creating a new frame every time.
please look at the code and let me know how to correct it
#!/usr/bin/env python
from Tkinter... (0 Replies)
Discussion started by: vickylife
0 Replies
5. Red Hat
Hi. How do I change the background color and text in Fedora. I did find the set_color -b command.
Thanks (1 Reply)
Discussion started by: Ccccc
1 Replies
6. Shell Programming and Scripting
i already have a running and working script for remote connection. is there a way to change the terminal color everytime I ssh remotely to another server? this is to avoid confusion since I will be using only one server to remotely access around 50 servers (solaris, linux,. etc) (2 Replies)
Discussion started by: lhareigh890
2 Replies
7. Programming
I am using uil to build the widgets. I compiled the below code using gcc 3.4.6 compiler. Launched x window in light gray color. How to change the default color of the window?
#include <X11/Xlib.h>
#include <Xm/Xm.h>
#include <Mrm/MrmAppl.h>
void
main ( int argc, char **argv )
{... (1 Reply)
Discussion started by: satish@123
1 Replies
8. OS X (Apple)
Greetings,
I know I can manipulate from AppleScript to terminal.app or just run commands from apple script.
But what about from a BASH Script.
when A user logs in and runs a maintenance utility I have written for them, I want to modify their background color and text color.
example;
... (4 Replies)
Discussion started by: doctorfoo1
4 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
LEARN ABOUT PHP
ncurses_color_set
NCURSES_COLOR_SET(3) 1 NCURSES_COLOR_SET(3)
ncurses_color_set - Set active foreground and background colors
SYNOPSIS
int ncurses_color_set (int $pair)
DESCRIPTION
Sets the active foreground and background colors. Any characters written after this function is invoked will have these colors. This func-
tion requires terminal colors to be supported and initialized using ncurses_start_color(3) beforehand.
ncurses uses color pairs to specify both foreground and background colors. Use ncurses_init_pair(3) to define a color pair.
PARAMETERS
o $pair
- The color pair from which to get the foreground and background colors to set as the active colors.
RETURN VALUES
Returns -1 on success, and 0 on failure.
EXAMPLES
Example #1
Writing a string with a specified color to the screen
<?php
ncurses_init();
// If the terminal supports colors, initialize and set active color
if (ncurses_has_colors()) {
ncurses_start_color();
ncurses_init_pair(1, NCURSES_COLOR_YELLOW, NCURSES_COLOR_BLUE);
ncurses_color_set(1);
}
// Write a string at specified location
ncurses_mvaddstr(10, 10, "Hello world! Yellow on blue text!");
// Flush output to screen
ncurses_refresh();
ncurses_end();
?>
SEE ALSO
ncurses_init_pair(3), ncurses_start_color(3).
PHP Documentation Group NCURSES_COLOR_SET(3)