version - NCurses: how to find out whether ABI 6 is supported? -
is there way find out whether ncurses supports abi 6?
if ( abi 6 supported ) { ... } else { ... }
you can see comparing header files. there 2 features can checked @ compile time:
- the mouse version differs in header files:
/* * identify mouse encoding version. */ -#define ncurses_mouse_version 1 +#define ncurses_mouse_version 2
- the extended-colors symbol defined:
@@ -374,9 +419,9 @@ { attr_t attr; wchar_t chars[ccharw_max]; -#if 0 +#if 1 #undef ncurses_ext_colors -#define ncurses_ext_colors 20110404 +#define ncurses_ext_colors 20170729 int ext_color; /* color pair, must more 16-bits */ #endif }
that is, latter (in abi 5) within ifdef prevents ncurses_ext_colors
symbol being defined. ncurses_mouse_version
symbol defined, value changed.
Comments
Post a Comment