Menus and ncurses

We are converting an existing application to nucrses. Currently, we are
working on the menus. We have reviewed the docs on ncurses specifically
the menu section. But, sadly to say we have not succeeded. Does
anyone know of a working example of ncurses menus. We are developing
currently in QNX4 with plans to support NTO2.

Thanks for the help.


Larry Sams

Dixie Sams <dixie@imaginei.com> wrote in message
news:3A8999B4.97FA4FA0@imaginei.com

We are converting an existing application to nucrses. Currently, we are
working on the menus. We have reviewed the docs on ncurses specifically
the menu section. But, sadly to say we have not succeeded. Does
anyone know of a working example of ncurses menus. We are developing
currently in QNX4 with plans to support NTO2.

checking… checking…

yes, we have a product that uses ncurses and menus

Unfortunately, it is a big monster, and is proprietary code, so I cannot
send it to you as an example…
And, I was unable to quickly find any small example programs here…

However, if you are having specific problems, I may be able to help you
resolve them…


Thanks for the help.


Larry Sams

“Steve Munnings, Corman Technologies” wrote:

Dixie Sams <> dixie@imaginei.com> > wrote in message
news:> 3A8999B4.97FA4FA0@imaginei.com> …
We are converting an existing application to nucrses. Currently, we are
working on the menus. We have reviewed the docs on ncurses specifically
the menu section. But, sadly to say we have not succeeded. Does
anyone know of a working example of ncurses menus. We are developing
currently in QNX4 with plans to support NTO2.

checking… checking…
yes, we have a product that uses ncurses and menus

Unfortunately, it is a big monster, and is proprietary code, so I cannot
send it to you as an example…
And, I was unable to quickly find any small example programs here…

However, if you are having specific problems, I may be able to help you
resolve them…

Hmm… May be you know then what does it take to handle SIGWINCH in
ncurses?
I’ve tried to let application se more rows when window is resized, but
failed. Attempts to re-create window don’t do anything - still can’t
write beyond initial max row. Attempt to re-init stdscr or create new
screen and switch current with new just get me crashed on random
locations.

I wound up doing exec() into myself from sighandler, to allow main() to
re-initialize everything for good :slight_smile:

  • igor

Igor Kovalenko <Igor.Kovalenko@motorola.com> wrote in message
news:3A89A6DF.961BFB3B@motorola.com

“Steve Munnings, Corman Technologies” wrote:

Dixie Sams <> dixie@imaginei.com> > wrote in message
news:> 3A8999B4.97FA4FA0@imaginei.com> …
We are converting an existing application to nucrses. Currently, we
are
working on the menus. We have reviewed the docs on ncurses
specifically
the menu section. But, sadly to say we have not succeeded. Does
anyone know of a working example of ncurses menus. We are developing
currently in QNX4 with plans to support NTO2.

checking… checking…
yes, we have a product that uses ncurses and menus

Unfortunately, it is a big monster, and is proprietary code, so I cannot
send it to you as an example…
And, I was unable to quickly find any small example programs here…

However, if you are having specific problems, I may be able to help you
resolve them…


Hmm… May be you know then what does it take to handle SIGWINCH in
ncurses?
I’ve tried to let application se more rows when window is resized, but
failed. Attempts to re-create window don’t do anything - still can’t
write beyond initial max row. Attempt to re-init stdscr or create new
screen and switch current with new just get me crashed on random
locations.

I wound up doing exec() into myself from sighandler, to allow main() to
re-initialize everything for good > :slight_smile:

  • igor

Sorry Igor, I don’t think our code worries about handling this situation!
I think that it assumes that the screens will be left the same size!

(Therefore, I think that your guess is as good as mine! :sunglasses: