[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Two notes about curses_version()

From: Thomas Dickey
Subject: Re: Two notes about curses_version()
Date: Mon, 5 Jan 2004 08:18:41 -0500 (EST)

On Mon, 5 Jan 2004, Stanislav Ievlev wrote:

> Hello friends!
> There are two little problems with this functions.
> 1. Ncurses allows to build a separate terminfo library. 
> tput,tset,toe,tic,tack and infocmp are pure terminfo utils, but we cannot 
> link these tools with terminfo only, because they use
> curses_version() from ncurses.
>    Note: all these tools use curses_version() to print version string only.

I hadn't considered that (it seems reasonable).

> There are two possible solutions:
>  a)(preferable way) move curses_version() from ncurses library to terminfo
>  b) use simple  printf("ncurses %s.%d",NCURSES_VERSION, NCURSES_VERSION_PATCH)
> 2. As I understand, curses_version() should return pointer to constant 
> (read-only) area. But it not so. Current curses_version() implementation 
> returns pointer to read-write static area.

as I recall, it was just a simple way to get the NCURSES_VERSION_PATH
quoted (though thinking about it, that seems doable with the

Thomas E. Dickey

reply via email to

[Prev in Thread] Current Thread [Next in Thread]