carta
curses_version(3)

curses_version3

Miscellaneous ncurses extensions

Part of curs_extend(3).

Usage

const char * curses_version(void); int use_extended_names(bool bf);

Overview

These ncurses extensions to the curses library do not fit easily into other functional categories.

curses_version

curses_version returns a pointer to a string containing the library's name and version number, including its patch level, for example “ncurses 6.5.20240720”.

use_extended_names

use_extended_names configures whether the library recognizes user-defined or nonstandard terminfo capability names that may be compiled into terminal type descriptions via the curs_terminfo(3X) or curs_termcap(3X) interfaces. Normally these names are available for use, since the essential decision is made through use of tic(1)'s -x option to include such extensions in terminal type descriptions. use_extended_names(FALSE) prevents ncurses from recognizing these capabilities to ensure compatibility with other implementations of curses.

Return value

curses_version returns a constant string.

use_extended_names returns the previous state of extended capability name recognition, allowing you to save this property and restore it.

Notes

The pointer returned by curses_version corresponds to statically allocated memory; do not attempt to free(3) it.

Extensions

These functions are ncurses extensions, and are not found in SVr4 curses, 4.4BSD curses, or any other previous curses implementation.

Portability

Applications employing ncurses extensions should condition their use on the visibility of the NCURSES_VERSION preprocessor macro.

NetBSD 9 added a curses_version function that intentionally returns a string devoid of version information.

History

  • FreeBSD 16.0-CURRENT (2026-10-27) to FreeBSD 15.1-RELEASE: the text shown here
  • FreeBSD 15.0-RELEASE
  • FreeBSD 14.5-RELEASE
  • FreeBSD 14.4-RELEASE to FreeBSD 14.2-RELEASE
  • FreeBSD 14.1-RELEASE to FreeBSD 14.0-RELEASE
  • FreeBSD 13.5-RELEASE to FreeBSD 13.0-RELEASE
  • FreeBSD 12.4-RELEASE to FreeBSD 11.0-RELEASE
  • FreeBSD 10.4-RELEASE to FreeBSD 7.1-RELEASE
  • FreeBSD 7.0-RELEASE
  • FreeBSD 6.4-RELEASE
  • FreeBSD 6.3-RELEASE
  • FreeBSD 6.2-RELEASE to FreeBSD 5.0-RELEASE
  • FreeBSD 4.11-RELEASE to FreeBSD 4.2-RELEASE
  • FreeBSD 4.1.1-RELEASE to FreeBSD 4.1-RELEASE

Authors

Thomas Dickey

From base 16.0-CURRENT-20261027-61c70dc16a79 in FreeBSD 16.0-CURRENT (2026-10-27). Parsed by carta from the page's man source.