Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/lib/libcurses Add colour capabilities and variables.



details:   https://anonhg.NetBSD.org/src/rev/d825dc2ea322
branches:  trunk
changeset: 484798:d825dc2ea322
user:      jdc <jdc%NetBSD.org@localhost>
date:      Wed Apr 12 21:46:49 2000 +0000

description:
Add colour capabilities and variables.

diffstat:

 lib/libcurses/curses.c |  18 +++++++++++-------
 1 files changed, 11 insertions(+), 7 deletions(-)

diffs (50 lines):

diff -r 52e4df1ff4ac -r d825dc2ea322 lib/libcurses/curses.c
--- a/lib/libcurses/curses.c    Wed Apr 12 21:46:27 2000 +0000
+++ b/lib/libcurses/curses.c    Wed Apr 12 21:46:49 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: curses.c,v 1.12 2000/04/11 13:57:09 blymn Exp $        */
+/*     $NetBSD: curses.c,v 1.13 2000/04/12 21:46:49 jdc Exp $  */
 
 /*
  * Copyright (c) 1981, 1993, 1994
@@ -38,7 +38,7 @@
 #if 0
 static char sccsid[] = "@(#)curses.c   8.3 (Berkeley) 5/4/94";
 #else
-__RCSID("$NetBSD: curses.c,v 1.12 2000/04/11 13:57:09 blymn Exp $");
+__RCSID("$NetBSD: curses.c,v 1.13 2000/04/12 21:46:49 jdc Exp $");
 #endif
 #endif                         /* not lint */
 
@@ -53,15 +53,17 @@
                                         * insert/delete line capabilities
                                         * for quick change on refresh.
                                         */
-char   AM, BS, CA, DA, EO, HC, IN, MI, MS, NC, NS, OS, PC, UL, XB, XN,
-       XT, XS, XX;
+char   AM, BE, BS, CA, CC, DA, EO, HC, HL, IN, MI, MS, NC, NS, OS, PC,
+       UL, XB, XN, XT, XS, XX;
+int    PA, cO, nc;
 char   *AC, *AE, *AL, *AS, *BC, *BL, *BT, *CD, *CE, *CL, *CM, *CR, *CS,
        *DC, *DL, *DM, *DO, *Ea, *ED, *EI, *K0, *K1, *K2, *K3, *K4, *K5,
        *K6, *K7, *K8, *K9, *HO, *IC, *IM, *IP, *KD, *KE, *KH, *KL, *KR,
        *KS, *KU, *LL, *MA, *MB, *MD, *ME, *MH, *MK, *MP, *MR, *ND, *NL,
-       *RC, *SC, *SE, *SF, *SO, *SR, *TA, *TE, *TI, *UC, *UE, *UP, *US,
-       *VB, *VS, *VE, *al, *dl, *sf, *sr, *AL_PARM, *DL_PARM, *UP_PARM,
-       *DOWN_PARM, *LEFT_PARM, *RIGHT_PARM;
+       *OC, *OP, *RC, *SC, *SE, *SF, *SO, *SP, *SR, *TA, *TE, *TI, *UC,
+       *UE, *UP, *US, *VB, *VS, *VE, *ab, *af, *al, *dl, *iC, *iP, *sB,
+       *sF, *sf, *sr, *AL_PARM, *DL_PARM, *UP_PARM, *DOWN_PARM, *LEFT_PARM,
+       *RIGHT_PARM;
 /*
  * Public.
  *
@@ -73,6 +75,8 @@
 WINDOW *stdscr;                        /* Standard screen. */
 int     COLS;                          /* Columns on the screen. */
 int     LINES;                         /* Lines on the screen. */
+int     COLORS;                        /* Maximum colors on the screen */
+int     COLOR_PAIRS;                   /* Maximum color pairs on the screen */
 int     My_term = 0;                   /* Use Def_term regardless. */
 char   *Def_term = "unknown";          /* Default terminal type. */
 char    GT;                            /* Gtty indicates tabs. */



Home | Main Index | Thread Index | Old Index