ncurses problem

I’ve downloaded the latest QUICS version of ncurses 4.2. I’m
porting some code, which now has a problem. The code lists
a routine getwstr() which is not found in the ncurses lib.

I found that ncurses has a get_wstr() routine, which I guess
is the right one, so I define all getwstr()'s to get_wstr().

Now I find the routine wgetn_wstr() is missing. This is something
that ncurses made up to translate get_wstr() to, but it doesn’t
contain it. Anyone know what is going on here?

Thanks


Mitchell Schoenbrun --------- maschoen@pobox.com

I discovered a couple of functions in ncurses 4.2 that have been renamed
from earlier versions. In one case, the old name was being reused with
different calling arguments (fortunately, prototyping caught it!).

Re the w…() functions: they are virtually all macros that call the
base function with stdscr as the first argument, so if a base function
(like getwstr() in your instance) “disappears” or is renamed, the w…
version (wgetstr()) will also disappear. Try wget_wstr().

You can get more details on the changes to ncurses at Dickey’s web site

Mitchell Schoenbrun wrote:

I’ve downloaded the latest QUICS version of ncurses 4.2. I’m
porting some code, which now has a problem. The code lists
a routine getwstr() which is not found in the ncurses lib.

I found that ncurses has a get_wstr() routine, which I guess
is the right one, so I define all getwstr()'s to get_wstr().

Now I find the routine wgetn_wstr() is missing. This is something
that ncurses made up to translate get_wstr() to, but it doesn’t
contain it. Anyone know what is going on here?

Thanks


Mitchell Schoenbrun --------- > maschoen@pobox.com

Bob Harris In short, you may buy a servant or slave,
Bath, NH but you cannot buy a friend.
bob@microprograms.com (Thoreau: Wild Fruits)

Robert,

We are also working our way through a series of ncurses questions. You
referenced “Dickey’s site”. What is the URL?

Thanks,


Larry Sams

“Robert L. Harris” wrote:

I discovered a couple of functions in ncurses 4.2 that have been renamed
from earlier versions. In one case, the old name was being reused with
different calling arguments (fortunately, prototyping caught it!).

Re the w…() functions: they are virtually all macros that call the
base function with stdscr as the first argument, so if a base function
(like getwstr() in your instance) “disappears” or is renamed, the w…
version (wgetstr()) will also disappear. Try wget_wstr().

You can get more details on the changes to ncurses at Dickey’s web site

Mitchell Schoenbrun wrote:

I’ve downloaded the latest QUICS version of ncurses 4.2. I’m
porting some code, which now has a problem. The code lists
a routine getwstr() which is not found in the ncurses lib.

I found that ncurses has a get_wstr() routine, which I guess
is the right one, so I define all getwstr()'s to get_wstr().

Now I find the routine wgetn_wstr() is missing. This is something
that ncurses made up to translate get_wstr() to, but it doesn’t
contain it. Anyone know what is going on here?

Thanks


Mitchell Schoenbrun --------- > maschoen@pobox.com

Bob Harris In short, you may buy a servant or slave,
Bath, NH but you cannot buy a friend.
bob@microprograms.com > (Thoreau: Wild Fruits)

The ncurses bug e-mail list at bug-ncurses@gnu.org.

ftp://dickey.his.com/ncurses/ncurses.html
http://dickey.his.com/ncurses/ncurses.html
ftp://dickey.his.com/ncurses/


Larry Sams wrote:

Robert,

We are also working our way through a series of ncurses questions. You
referenced “Dickey’s site”. What is the URL?

Thanks,

Larry Sams

“Robert L. Harris” wrote:

I discovered a couple of functions in ncurses 4.2 that have been renamed
from earlier versions. In one case, the old name was being reused with
different calling arguments (fortunately, prototyping caught it!).

Re the w…() functions: they are virtually all macros that call the
base function with stdscr as the first argument, so if a base function
(like getwstr() in your instance) “disappears” or is renamed, the w…
version (wgetstr()) will also disappear. Try wget_wstr().

You can get more details on the changes to ncurses at Dickey’s web site

Mitchell Schoenbrun wrote:

I’ve downloaded the latest QUICS version of ncurses 4.2. I’m
porting some code, which now has a problem. The code lists
a routine getwstr() which is not found in the ncurses lib.

I found that ncurses has a get_wstr() routine, which I guess
is the right one, so I define all getwstr()'s to get_wstr().

Now I find the routine wgetn_wstr() is missing. This is something
that ncurses made up to translate get_wstr() to, but it doesn’t
contain it. Anyone know what is going on here?

Thanks


Mitchell Schoenbrun --------- > maschoen@pobox.com

Bob Harris In short, you may buy a servant or slave,
Bath, NH but you cannot buy a friend.
bob@microprograms.com > (Thoreau: Wild Fruits)