PDCurses icon indicating copy to clipboard operation
PDCurses copied to clipboard

Menu (tui)

Open ghost opened this issue 5 years ago • 2 comments

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

ghost avatar Jul 12 '20 10:07 ghost

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.

okbob avatar Jul 30 '21 14:07 okbob

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).

GitMensch avatar May 29 '23 21:05 GitMensch