-
Notifications
You must be signed in to change notification settings - Fork 183
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Implement menu and forms library #57
Comments
I'd love to see portable versions of these; unfortunately, the ncurses versions aren't. From time to time, I hear about someone working on it, but I've yet to see it finished. |
@guilt Can you picture yourself adding these after #59 is merged? |
Okay, I'll start looking into it. I haven't used these a lot myself, but they look like quite useful functions when people make applications with them. |
@guilt I suggest starting with a new demo that uses the ncurses functions (and work there) and then go on with the actual PDCurses implementation. |
I should clarify something. I'd really rather see portable versions of these than PDCurses-specific ones, and I doubt that PDCurses-specific features are necessary to implement the libraries. Either way, though, I don't intend to expand the scope of PDCurses by adopting these as part of it. They're huge on their own, entail a lot of support, and should IMHO remain a separate project. (That would also free developers up to, for example, take the ncurses versions and make them portable while retaining the ncurses license, without having to worry about the public domain.) I've kept this issue open since this is a thing that comes up from time to time, but with the current direction of discussion, I fear it creates the wrong impression. |
Hi, Just logged in today. This means, if done right, it still may not be part of PDCurses? We had I would definitely want to work on it and keep the patch out there, so when you find it comfortable to get it in, you'd vet it. I am trying to develop small, WIP patches after all. But I'd trust you know the internals and usages way better than I do. |
Thank you @guilt for your interest. What William said was: it seems to not be as reasonable to include these directly as the panel stuff which is much more interacting with the curses windows. This does indeed has a lot of benefits:
So the big question is @guilt: Do you create a repo with a new library (maybe two repos: one for curses-menu and the other one for curses-forms) for this task? I may could help a little, with things like setup/CI/compatibility/releases... |
If anyone is interested I was able to port the ncurses-st-menu menu implementation to PDCurses. The overall project looks really good. For those interested you can have a look at my fork. I have only tested the PDCurses X11 on Ubuntu 16.04 and Windows 10 using PDCurses wincon. The NCurses support is still maintained. |
@tysenmoore-xse That sounds quite nice and I like those changes. Can you add additional screenshots for PDCurses X11 in your fork (additional to easy the upcoming PR to upstream)? @wmcbrine @Bill-Gray Do you see an option to (or reason to not) include the adjustments done for
|
Yeah, I noticed the oversized window thing a while back. I was actually surprised that ncurses does that, but, emulating it is probably the right thing. |
I could conceivably see a problem here if somebody called |
Clipping is not contemplated. Working like ncurses means returning the requested size, even if parts of it are off-screen. |
@wmcbrine Should adjusting |
|
Sorry, ignore me, I blame it on feeling sick. Obviously this does warrant a new issue, even if I won't get to it right away. |
I did push a screenshot to the README and screenshot directory. As for the discussion on my |
I notice that |
For those interested, the PDCurses compatible menu changes I had forked have been accepted as a PR and merged. The repo can be found here: https://github.com/okbob/ncurses-st-menu |
Hi,
This is perhaps an optional feature, but I was going to ask if we could get a port of these over, to increase compatibility with the NCURSES implementations.
https://www.tldp.org/HOWTO/NCURSES-Programming-HOWTO/menus.html
https://www.tldp.org/HOWTO/NCURSES-Programming-HOWTO/forms.html
The text was updated successfully, but these errors were encountered: