wmcbrine / PDCurses

A curses library for environments that don't fit the termcap/terminfo model.
https://pdcurses.org/
1.04k stars 176 forks source link

Menu (tui) #97

Open ghost opened 4 years ago

ghost commented 4 years ago

hi, i was wondering if its possible that pdcurse support menus ? I have seen a program called 'tuidemo' that is supposed to allow us to make similar menu is it still possible ?

image

okbob commented 3 years ago

ncurses-st-menu is similar library to ncurses menu library, but with CUA look - looks like your example https://github.com/okbob/ncurses-st-menu - PDCurses are supported.

GitMensch commented 1 year ago

The code for that demo is at https://github.com/wmcbrine/PDCurses/blob/master/demos/tuidemo.c (it calls https://github.com/wmcbrine/PDCurses/blob/master/demos/tui.c for the actual handling - you could do the same).

A more portable solution is a menu library like the one above, but depending on the use-case this may not be necessary.

I suggest to close the issue as "solved" as the implementation within PDCurses (the ncurses menu library) was explicit closed as "not done" #57 (rather: a portable version of those should be created that is not part of this repo, similar to the ncurses-st-menu option above).