-
Notifications
You must be signed in to change notification settings - Fork 700
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
Colors: The native method "COLOR_PAIRS" does not exist #415
Comments
I do have /lib64/libncursesw.so.5 on my system and
|
Ok, the problem is that it probably tries to load libncursesw.so.6 instead
|
It works if I try to load "libncursesw.so.5" before so.6 in bindings.cs... I tried to load the equivalent methods, but failed to locate the so.6 equivalent for LINES |
Is this still an issue? If not, please close it. |
I think we should make it so we probe _nc_COLOR_PARIS and _nc_COLORS first, and if we fail, we fallback to COLOR_PAIR, COLOR_PAIRS. |
Honestly - the long term solution is to avoid curses at all. Curses is so often miss-compiled, so often old, so often compiled with missing capabilities, and with semantics that I end up working around more often than I wish. The main case for ncurses is the optimization code that can compute the best commands to compute the area of the screen to update, but that is no longer a hard problem, and the speed of terminals is faster than it used to be. Since I have recently completed two terminal emulators, I think that ncurses is really working against fully leveraging the capabilities of an xterm (what most things implement now). So I would love to build a new backend that does not rely on all these bad hacks (like even colors today are highly limited because of the space, or high colors do not work properly on Mac, again, because it is compiled without all capabilities) |
haha, I knew I had written something about it: |
Hey! But the new backend is not ready to use, right? I only had issues in opensuse so far. Couple of cloud servers in amazon and google went well :-) |
This is covered by #370. Closing. |
Do we have a workaround for this? Looks like v2 is a long way off yet. |
I dunno. But I'm reopening as my closing it was clearly in error. Maybe another contributor more familiar with Linux can help! |
|
Sure, I commented because I'm having the exact same problem as @psantosl was having. On the target system, I have both When the application loads, it chooses |
Thanks for the explanation. But this is happening with all the Another workaround is use the |
@adam8797 do you know the steps to get these @BDisp I don't know exactly how the binding / locating of libraries is happening in If the |
I actually don't have that level of control on these machines, they were built and managed by others. They're running SLES (an OpenSuSE variant) so that seems to be the common thread here, as the original post was on OpenSuSE Leap I'll try setting the |
Its a good idea to make |
@BDisp looks like you found the workaround! Application.UseSystemConsole = true;
Application.Init(); Seems to work in this situation. I can probably rely on this in my case (as all of the target machines are the same), but more generally a workaround could be to look for the Thanks for everyone's help, hopefully this edge case can be remediated in the library proper. |
@tznind are there any drawbacks to setting |
That checks are made in the binding.cs file. But as @migueldeicaza said in #415 (comment) comment we can't rely totally on ncurses. |
This is the information in the
|
Weird, maybe the OpenSuSE family of products just has a different/bad version of
|
Yes probably they don't compile the |
In my experience Another thing that sometimes is an issue is the $TERM variable (e.g. see #2085) But I don't think I've seen any environments where it won't work with some permutation of $TERM and/or |
The $TERM environment is needed with |
|
Reopening this to submit another PR with a different approach to fix it. |
…S" does not exist
Fixes #415 v2. Colors: OpenSUSE - The native method "COLOR_PAIRS" does not exist
Hey,
Just got
The native method "COLOR_PAIRS" does not exist
Trying to run a sample app (https://github.com/psantosl/htopsharp) in OpenSuse Leap 15.1 freshly installed.
The text was updated successfully, but these errors were encountered: