okbob / ncurses-st-menu Goto Github PK
View Code? Open in Web Editor NEWncurses (pdcurses) based library for CUA look menu
License: BSD 2-Clause "Simplified" License
ncurses (pdcurses) based library for CUA look menu
License: BSD 2-Clause "Simplified" License
Hello
I have an error compiling demo
demo/demo.c: In function ‘get_event’:
demo/demo.c:57:2: error: unknown type name ‘wint_t’
wint_t ch;
^~~~~~
demo/demo.c:68:8: warning: implicit declaration of function ‘get_wch’ [-Wimplicit-function-declaration]
ret = get_wch(&ch);
^~~~~~~
Makefile:35: recipe for target 'demoapp' failed
gcc version 6.3.0 20170516 (Debian 6.3.0-18+deb9u1)
I'm a newbie in C
thanks in advance
The readme suggests that X11/WinCon are the only options when using PDCurses.
Does st-menu support PDCurses + SDL2 ?
Is it possible to use ncurses-st-menu as context menu (a panel including the "normal" menu definition horizontally) already?
If not: please consider this feature request.
When looking at @tysenmoore-xse's repo we also see that as long as the generated files are in it happens that those are adjusted and committed, instead of the "sources", which is another reason to remove them.
Together with the deletion I suggest to add those files to git ignore.
Extra null pointer checks are not needed in functions like the following.
a checkbox would have an additional pointer to an int/char variable (and possibly if a "triple state" is possible [would evaluate to -1], off = 0, on = 1)
for options we likely would have two set of definitions:
@okbob Is it understandable what I mean? Should those two additional control types be split to two issues?
I would like to point out that an identifier like “_ST_MENU_ITEM
” does not fit to the expected naming convention of the C language standard.
Would you like to adjust your selection for unique names?
If I change the demo.c (for example) to to not block waiting for an input event the menu does not work correctly. I added the following to the main()
nodelay(stdscr, TRUE);
I can no longer get selections while using the mouse. For example, go into the menu and select something, it does not work. If I use the command bar key presses they work. I also noticed the submenus open just fine. The selection of any item using the mouse seems to be the only problem.
I also tried to step through the code and it sometimes works.
Is this expected behavior? (I assume no) Has anyone experienced this before? Is this mode supported by the menu? Or, am I not using this feature properly?
Thanks for the time and any support.
I'm having an issue setting this up on NetBSD. I first get an error with ./autogen.sh
Then doing the command again appears to work for some reason
And then running ./configure tells me that netbsd isn't supported despite the documentation stating it does
Is there a dependency I'm missing?
Edit: I just wanted to add I get the same exact errors in OpenBSD too. So this appears to be a *BSD issue rather than a specific OS issue.
Edit 2: autogen.sh also fails on linux, but regular configure and make works without issue.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.