[issue31680] Expose curses library name and version on Python level

STINNER Victor report at bugs.python.org
Tue Oct 3 15:44:04 EDT 2017


STINNER Victor <victor.stinner at gmail.com> added the comment:

On Fedora 26, /usr/include/ncurses/curses.h contains:
---
/* These are defined only in curses.h, and are used for conditional compiles */
#define NCURSES_VERSION_MAJOR 6
#define NCURSES_VERSION_MINOR 0
#define NCURSES_VERSION_PATCH 20170212

/* This is defined in more than one ncurses header, for identification */
#undef  NCURSES_VERSION
#define NCURSES_VERSION "6.0"

/*
 * Identify the mouse encoding version.
 */
#define NCURSES_MOUSE_VERSION 2
---

You want to expose such versions? Do you know if there are "curses" implementations different than GNU ncurses?
https://www.gnu.org/software/ncurses/

I'm asking to know how other implementations expose their versions.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue31680>
_______________________________________


More information about the Python-bugs-list mailing list