-
Notifications
You must be signed in to change notification settings - Fork 555
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
Cannot initialize Ncurses in macOS #455
Comments
You probably need to set the environment variable julia> using Ncurses_jll
julia> withenv("TERMINFO_DIRS" => joinpath(Ncurses_jll.artifact_dir, "share", "terminfo")) do
ccall( (:initscr, libncurses), Cvoid, ())
end |
Also |
This work! However, I need to set for the whole Julia session, otherwise I will have to do a strange logic because I need to let the user to load its own ncurses version. Is there any downside? |
Great, then I'm going to close the ticket.
The only problem can arise if there are other, different instances of ncurses loaded in the same session, that might be wrecked by this setting. The probability of this situation is likely very low. If all Julia packages needing ncurses use You're free to set the variable with |
Thanks very much for the quick help! |
Hi!
For some reason, I cannot initialize Ncurses using
Ncurses_jll
in macOS.After that, julia crashes. Passing the env. option
TERM=xterm
did not help also.I can start Ncurses normally if I use the library that ships with macOS or the library in home-brew.
The text was updated successfully, but these errors were encountered: