ncurses -> the best way to use menus

hello there,

i'm exploring the curses lib and i'm having some trouble with "defining a style". to clarify: i'm creating a menu driven app and i've been thinking what's the best way to use menus: make global vars (not my favourite), creating a function which designs the menu and returns the selected option (doesn't seem the best either). can someone point me some code to use as example or give me some hint?

basically what i want to do is to create a menu which calls a submenu and then the submenu calls a function. also, i'm using scr_dump to save the screen, can't i do this without having to save the screen?

thx in advance :slight_smile:

you might wanna try using set_item_userptr() and item_userptr()

thx, crashnburn :smiley: