CURSES_DEFAULT_COLORS(3) BSD Library Functions Manual CURSES_DEFAULT_COLORS(3)NAME
curses_default_colors, assume_default_colors, use_default_colors -- curses default colors setting routines
LIBRARY
Curses Library (libcurses, -lcurses)
SYNOPSIS
#include <curses.h>
int
assume_default_colors(short fore, short back);
int
use_default_colors();
DESCRIPTION
These functions tell the curses library to set the default colors or to use the terminal's default colors instead of using the default colors
for curses applications (which are white foreground on black background).
The function assume_default_colors(fore, back) sets the default colors to foreground color fore and background color back. If a value of -1
is used for a color, then the terminal default color is used for that color.
The function use_default_colors() sets both the foreground and background colors to the terminal default colors. This is equivalent to
assume_default_colors(-1, -1).
RETURN VALUES
These functions return OK on success and ERR on failure.
SEE ALSO curses_color(3)STANDARDS
These functions are based on ncurses extensions to the curses standards.
HISTORY
These functions first appeared in NetBSD 2.0.
BSD October 13, 2002 BSD
Check Out this Related Man Page
CURSES_DEFAULT_COLORS(3) BSD Library Functions Manual CURSES_DEFAULT_COLORS(3)NAME
curses_default_colors, assume_default_colors, use_default_colors -- curses default colors setting routines
LIBRARY
Curses Library (libcurses, -lcurses)
SYNOPSIS
#include <curses.h>
int
assume_default_colors(short fore, short back);
int
use_default_colors();
DESCRIPTION
These functions tell the curses library to set the default colors or to use the terminal's default colors instead of using the default colors
for curses applications (which are white foreground on black background).
The function assume_default_colors(fore, back) sets the default colors to foreground color fore and background color back. If a value of -1
is used for a color, then the terminal default color is used for that color.
The function use_default_colors() sets both the foreground and background colors to the terminal default colors. This is equivalent to
assume_default_colors(-1, -1).
RETURN VALUES
These functions return OK on success and ERR on failure.
SEE ALSO curses_color(3)STANDARDS
These functions are based on ncurses extensions to the curses standards.
HISTORY
These functions first appeared in NetBSD 2.0.
BSD October 13, 2002 BSD
Hello,
Does anyone know why I'm not able to get colors in Pine when using Xterm, but I can get them using Dtterm?
Any answers to this would be much appreciated.
Radimus. (1 Reply)
I need to display a line in an xterm window but i want to revese the colors so that the background color becomes the foreground color and the foreground color the background color. I want to do this as part of ksh script.
Can somebody tell me how to do this ?
Thanks,
Abu. (5 Replies)
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)
Guys i used to the black background in BSD, now im using Sun Solairs, how can i change the background and font colors in console ?, i heard about setterm but i didnt get the right syntax, any ideas ? (5 Replies)
xemacs uses default colors for coloring C files
how can I change those colors. I could only manage the default background and foreground colors and that too using .Xdefaults file changes. (2 Replies)
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)
I was trying to see all combinations of foreground and background colors in BASH.
This works fine for me,
echo -e '\E[37;46m TEXT'
but when I tried the below script, the variables i and j do not expand.
#!/bin/sh
for i in `seq 30 37` # foreground
do
for j in `seq 40... (4 Replies)
I was wondering if there is anyway to use the curses library with ksh88. I saw Shell Curses function library which says I can use /usr/local/functions/shellcurses on ksh93 but I am on ksh88. I am on a HP-UX box. (0 Replies)
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)