Coder Social home page Coder Social logo

okbob / ncurses-st-menu Goto Github PK

View Code? Open in Web Editor NEW
57.0 9.0 7.0 4.2 MB

ncurses (pdcurses) based library for CUA look menu

License: BSD 2-Clause "Simplified" License

C 61.64% Makefile 1.72% Shell 9.20% M4 27.44%
ncurses-library tui cua ncurses menu menubar styled-components c pdcurses menus

ncurses-st-menu's People

Contributors

okbob avatar tysenmoore-xse avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

ncurses-st-menu's Issues

add new "control types" checkbox and option

  • 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:

    • an option group which defines a pointer to an int/char variable and the place the option group is placed and possibly if a triple state is possible
    • the actual options (common definitions like short cuts and text here + the value that is used for this option)

@okbob Is it understandable what I mean? Should those two additional control types be split to two issues?

remove autogen + configure-generated files

  • configure (generated from configure.ac when running autogen.sh and heavily different depending on the actual version of the installed tools, so very likely to get conflicts when generated with a different version)
  • st_menu.pc (generated during configure from st_menu.pc.in)
  • config.make (generated during configure from config.make.in)

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.

Selections not working from mouse

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.

NetBSD failure to build

I'm having an issue setting this up on NetBSD. I first get an error with ./autogen.sh
autogensh

Then doing the command again appears to work for some reason
autogenshfixed

And then running ./configure tells me that netbsd isn't supported despite the documentation stating it does
configurefailed

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.

Use as popup-menu (context-menu)

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.

SDL2 support?

The readme suggests that X11/WinCon are the only options when using PDCurses.
Does st-menu support PDCurses + SDL2 ?

compiling demo

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.