-
Notifications
You must be signed in to change notification settings - Fork 73
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
ncurses extension define_key not implemented #214
Comments
That's definitely NOT correct. A bit better would be to check for the define key function (has do be done at configure/cmake time), maybe a define for that already exists in lldb? #ifndef HAVE_DEFINE_KEY
#define define_key(x,y) /* do nothing */
#endif If not then you may still want to check if you can use that piece to define the function "away" for an easy compile (that can be even done unconditionally on the command line). If the return code is used: according to the man page Note: It is unlikely that that change above gets in though, we had a discussion over 2 years ago on that matter:
Originally posted by @wmcbrine in wmcbrine/PDCurses#59 (comment) [it is still good to have it here for reference] Ideally you could patch the code in lldb that actually uses |
Looking at the discussion @GitMensch links to, I see that William remarked that In every other port, they are indeed meaningless. @adv-sw, if you're using the VT or framebuffer ports, and have a situation where key definitions are being added and need to actually be recognized ("this is the definition for Ctrl-Alt-Left Arrow and the key code I want If you're using it with any other port, or if you don't actually need the key in question, then @GitMensch's proposed solution (have it do nothing) is probably best. I'd have it return |
yeah, return ERR seems most sensible for the time being. then app can know request failed. thanks for quick response. could patch the app. thinking that's not necessarily the way as this is generic function (or stub) |
Going with following for the time being : // pdcurses doesn't implement define_key so we stub for the time being. |
Is anyone against moving that issue to "add
|
I don't actually expect to implement If we did do it, something resembling your third option would seem reasonable. I wouldn't want people to think these functions were actually doing something on ports where they are actually meaningless. (The overall concept that |
Then we may keep this issue open for PDCursesMod - but I suggest that you adjust the title of this issue or create a new issue to track this.
The point that this currently is not the case in PDCurses* (it is since years with ncurses) is - for me personally - the biggest issue about building with PDCurses* (I think XCurses with its configure hopefully doesn't have this issue). For my last |
Unsure of requirement as decided personally to bail to imgui based interface. Status here : https://bugs.llvm.org/show_bug.cgi?id=51954 |
that's one more thing that should be defined within the generated curses.h ... |
@adv-sw, thank you; that gives me a bit more insight... The actual usage is at lines 7720-7721 here, to get
and use of Also, at least on xterm on my Xubuntu 20.04 box, the control sequence for Alt-Enter is \033\012, not \033\015. (Usually, Alt-(key) will have the control sequence \033(key). The Enter key is an exception.) Not that it matters for the Windows ports; none of them use control sequences anyway. However, all this would only explain why Shift-Tab and Alt-Enter wouldn't work; it doesn't explain why you're "erroring out". I suspect @GitMensch is either correct about |
not a rant :) agree PDC_DLL_BUILD in the autogenerated fille is one less thing that can mess up :) & yeah, that isn't going to be cause of all input messing up. lldb gui needs debugging to figure out cause of regression. best I can do is inform for now. got other stuff I have to work on. must focus. apologies can't take it further. the erroring out was with pdcurses, not yours & was when I was first experimenting & had it patched incorrectly. so might be non-issue. I know yours runs (thanks), input failing ... reason unclear without diving into it. |
Required to builld lldb curses implementation using this library.
Have stubbed it as follows to get something running.
The text was updated successfully, but these errors were encountered: