Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. =================================================================== RCS file: /ftp/cvs/cvsroot/src/lib/libcurses/curses_private.h,v rcsdiff: /ftp/cvs/cvsroot/src/lib/libcurses/curses_private.h,v: warning: Unknown phrases like `commitid ...;' are present. retrieving revision 1.5 retrieving revision 1.16 diff -u -p -r1.5 -r1.16 --- src/lib/libcurses/curses_private.h 2000/04/18 22:43:25 1.5 +++ src/lib/libcurses/curses_private.h 2001/06/13 10:45:57 1.16 @@ -1,4 +1,4 @@ -/* $NetBSD: curses_private.h,v 1.5 2000/04/18 22:43:25 jdc Exp $ */ +/* $NetBSD: curses_private.h,v 1.16 2001/06/13 10:45:57 wiz Exp $ */ /*- * Copyright (c) 1998-2000 Brett Lymn @@ -13,7 +13,7 @@ * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * 2. The name of the author may not be used to endorse or promote products - * derived from this software withough specific prior written permission + * derived from this software without specific prior written permission * * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES @@ -53,7 +53,6 @@ struct __ldata { struct __line { #define __ISDIRTY 0x01 /* Line is dirty. */ #define __ISPASTEOL 0x02 /* Cursor is past end of line */ -#define __FORCEPAINT 0x04 /* Force a repaint of the line */ unsigned int flags; unsigned int hash; /* Hash value for the line. */ int *firstchp, *lastchp; /* First and last chngd columns ptrs */ @@ -86,6 +85,7 @@ struct __window { /* Window structure. attr_t wattr; /* Character attributes */ wchar_t bch; /* Background character */ attr_t battr; /* Background attributes */ + int scr_t, scr_b; /* Scrolling region top, bottom */ }; /* Set of attributes unset by 'me' - 'mb', 'md', 'mh', 'mk', 'mp' and 'mr'. */ @@ -97,6 +97,14 @@ struct __winlist { struct __winlist *nextp; /* Next window. */ }; +/* Private variables. */ +extern char __GT; /* Gtty indicates tabs. */ +extern char __NONL; /* Term can't hack LF doing a CR. */ +extern char __UPPERCASE; /* Terminal is uppercase only. */ + +extern int My_term; /* Use Def_term regardless. */ +extern const char *Def_term; /* Default terminal type. */ + /* Private functions. */ #ifdef DEBUG void __CTRACE(const char *fmt, ...); @@ -104,7 +112,7 @@ void __CTRACE(const char *fmt, ...); int __delay(void); unsigned int __hash(char *s, int len); void __id_subwins(WINDOW *orig); -void __init_getch(char *sp); +void __init_getch(void); void __init_acs(void); char *__longname(char *bp, char *def); /* Original BSD version */ int __mvcur(int ly, int lx, int y, int x, int in_refresh); @@ -113,6 +121,8 @@ int __notimeout(void); char *__parse_cap(const char *, ...); void __restartwin(void); void __restore_colors(void); +void __restore_cursor_vis(void); +void __restore_meta_state(void); void __restore_termios(void); void __restore_stophandler(void); void __save_termios(void); @@ -124,10 +134,12 @@ void __stop_signal_handler(int signo); int __stopwin(void); void __swflags(WINDOW *win); int __timeout(int delay); -int __touchline(WINDOW *win, int y, int sx, int ex, int force); +int __touchline(WINDOW *win, int y, int sx, int ex); int __touchwin(WINDOW *win); char *__tscroll(const char *cap, int n1, int n2); +void __unsetattr(int); int __waddch(WINDOW *win, __LDATA *dp); +int __wgetnstr(WINDOW *, char *, int); /* Private #defines. */ #define min(a,b) (a < b ? a : b) @@ -140,4 +152,6 @@ extern int __pfast; extern int __rawmode; extern int __noqch; extern attr_t __nca; +extern attr_t __mask_op, __mask_me, __mask_ue, __mask_se; extern struct __winlist *__winlistp; +extern WINDOW *__virtscr;