diff options
author | Todd C. Miller <millert@cvs.openbsd.org> | 2000-01-16 01:35:20 +0000 |
---|---|---|
committer | Todd C. Miller <millert@cvs.openbsd.org> | 2000-01-16 01:35:20 +0000 |
commit | 4f8aa862930674882c18bd874d1e03ef2b683b90 (patch) | |
tree | fdd3069af3a177667aa385bd0920bdcceb7cfc55 /lib/libcurses/tic.h | |
parent | b4d14dd490ae681e832fa406a09c4e29963c25ad (diff) |
Update to ncurses-5.0-20000115:
+ additional fixes for non-bce terminals (handling of delete_character)
to work when assume_default_colors() is not specified.
+ modify warning message from _nc_parse_entry() regarding extended
capability names to print only if tic/infocmp/toe have the -v flag
set, and not at all in ordinary user applications. Otherwise, this
warning would be shown for screen's extended capabilities in programs
that use the termcap interface.
+ modify use of _nc_tracing from programs such as tic so their debug
level is not in the same range as values set by trace() function.
+ small panel header cleanup (patch by Juergen Pfeifer).
Diffstat (limited to 'lib/libcurses/tic.h')
-rw-r--r-- | lib/libcurses/tic.h | 19 |
1 files changed, 16 insertions, 3 deletions
diff --git a/lib/libcurses/tic.h b/lib/libcurses/tic.h index f3b6aa4684a..b7652978ff1 100644 --- a/lib/libcurses/tic.h +++ b/lib/libcurses/tic.h @@ -1,7 +1,7 @@ -/* $OpenBSD: tic.h,v 1.7 1999/11/28 17:59:28 millert Exp $ */ +/* $OpenBSD: tic.h,v 1.8 2000/01/16 01:35:17 millert Exp $ */ /**************************************************************************** - * Copyright (c) 1998 Free Software Foundation, Inc. * + * Copyright (c) 1998-2000 Free Software Foundation, Inc. * * * * Permission is hereby granted, free of charge, to any person obtaining a * * copy of this software and associated documentation files (the * @@ -99,8 +99,21 @@ extern "C" { /* location of user's personal info directory */ #define PRIVATE_INFO "%s/.terminfo" /* plug getenv("HOME") into %s */ +/* + * Some traces are designed to be used via tic's verbose option (and similar in + * infocmp and toe) rather than the 'trace()' function. So we use the bits + * above the normal trace() parameter as a debug-level. + */ + +#define MAX_DEBUG_LEVEL 15 +#define DEBUG_LEVEL(n) ((n) << 12) /* see TRACE_MAXIMUM */ + +#define set_trace_level(n) \ + _nc_tracing &= DEBUG_LEVEL(MAX_DEBUG_LEVEL), \ + _nc_tracing |= DEBUG_LEVEL(n) + #ifdef TRACE -#define DEBUG(n, a) if (_nc_tracing & (1 << (n - 1))) _tracef a +#define DEBUG(n, a) if (_nc_tracing >= DEBUG_LEVEL(n)) _tracef a #else #define DEBUG(n, a) /*nothing*/ #endif |