X-Git-Url: https://ncurses.scripts.mit.edu/?p=ncurses.git;a=blobdiff_plain;f=doc%2Fhtml%2Fman%2Fdefault_colors.3x.html;h=46e1fdfbe54ef50619468384a34233b87e4c3764;hp=019624cb6c3e625b444bf9e95912a7c3c5d181ae;hb=aabb3a65ee5d88949abe529b5131adedb9cfab84;hpb=a8987e73ec254703634802b4f7ee30d3a485524d diff --git a/doc/html/man/default_colors.3x.html b/doc/html/man/default_colors.3x.html index 019624cb..46e1fdfb 100644 --- a/doc/html/man/default_colors.3x.html +++ b/doc/html/man/default_colors.3x.html @@ -1,7 +1,6 @@ - + + + default_colors 3x -

default_colors 3x

-
+

default_colors 3x

-
-default_colors(3x)                             default_colors(3x)
+default_colors(3x)                                   default_colors(3x)
 
 
 
 
 
-

NAME

+

NAME

        use_default_colors, assume_default_colors - use terminal's
        default colors
 
 
 
-

SYNOPSIS

+

SYNOPSIS

        #include <curses.h>
 
        int use_default_colors(void);
@@ -61,7 +61,7 @@
 
 
 
-

DESCRIPTION

+

DESCRIPTION

        The use_default_colors() and assume_default_colors() func-
        tions are extensions to the curses library.  They are used
        with terminals that support ISO 6429 color, or equivalent.
@@ -111,47 +111,77 @@
 
 
 
-

RETURN VALUE

+

RETURN VALUE

        These functions return the integer ERR upon failure and OK
        on success.  They will fail if either  the  terminal  does
        not  support  the orig_pair or orig_colors capability.  If
-       the initialize_pair capability is found,  this  causes  an
-       error as well.
+       the initialize_pair capability is not found,  this  causes
+       an error as well.
 
 
 
-

NOTES

-       Associated with this extension, the init_pair(3x) function
+

NOTES

+       Associated  with  this  extension,  the init_pair function
        accepts negative arguments to specify  default  foreground
        or background colors.
 
+       The  use_default_colors()  function  was  added to support
+       ded.  This is a full-screen application which uses  curses
+       to  manage only part of the screen.  The bottom portion of
+       the screen, which is of adjustable size, is left uncolored
+       to  display the results from shell commands.  The top por-
+       tion of the screen colors filenames using  a  scheme  like
+       the  "color  ls" programs.  Attempting to manage the back-
+       ground color of the screen for this application would give
+       unsatisfactory  results  for  a  variety of reasons.  This
+       extension was devised after noting that color  xterm  (and
+       similar  programs)  provides a background color which does
+       not necessarily correspond to  any  of  the  ANSI  colors.
+       While  a special terminfo entry could be constructed using
+       nine colors, there was no mechanism provided within curses
+       to  account for the related orig_pair and back_color_erase
+       capabilities.
+
+       The assume_default_colors() function was added to solve  a
+       different  problem:  support  for applications which would
+       use  environment  variables  and  other  configuration  to
+       bypass  curses'  notion  of the terminal's default colors,
+       setting specific values.
+
 
 
-

PORTABILITY

-       These  routines  are  specific  to ncurses.  They were not
-       supported on Version 7, BSD or System  V  implementations.
-       It  is recommended that any code depending on them be con-
+

PORTABILITY

+       These routines are specific to  ncurses.   They  were  not
+       supported  on  Version 7, BSD or System V implementations.
+       It is recommended that any code depending on them be  con-
        ditioned using NCURSES_VERSION.
 
 
 
-

SEE ALSO

-       curs_color(3x), ded(1).
+

SEE ALSO

+       curs_color(3x), ded(1).
 
 
 
-

AUTHOR

-       Thomas Dickey (from an analysis of  the  requirements  for
+

AUTHOR

+       Thomas  Dickey  (from  an analysis of the requirements for
        color xterm for XFree86 3.1.2C, February 1996).
 
 
 
-                                               default_colors(3x)
+                                                     default_colors(3x)
 
-
-
-Man(1) output converted with -man2html -
+