diff options
author | nicholas a. evans <nicholas.evans@gmail.com> | 2022-04-06 18:31:48 -0400 |
---|---|---|
committer | git <svn-admin@ruby-lang.org> | 2022-05-25 06:34:28 +0900 |
commit | d020334e9ee6d978bbed09ce96a03a6d6d2490a6 (patch) | |
tree | 8433e1c32dee072011547d4641df4786d2705dc4 /lib | |
parent | 0c36ba53192c5a0d245c9b626e4346a32d7d144e (diff) |
[ruby/reline] Workaround libncurses.so as a linker script
This maybe isn't probably isn't the best approach, but it will allow
`Fiddle::Terminfo.curses_dl` to work. I documented more details about
this in an issue on fiddle: https://github.com/ruby/fiddle/issues/107
It is probably better to deal with it there. But this is workaround is
simpler.
FYI: `reline` itself seems to be working just fine for me _without_
loading ncurses. But I wanted to be able to use `Reline::Terminfo` for
my own projects. :)
https://github.com/ruby/reline/commit/fd4bdb35e2
Diffstat (limited to 'lib')
-rw-r--r-- | lib/reline/terminfo.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/reline/terminfo.rb b/lib/reline/terminfo.rb index f53642b919..6cd78f5660 100644 --- a/lib/reline/terminfo.rb +++ b/lib/reline/terminfo.rb @@ -24,7 +24,8 @@ module Reline::Terminfo when /darwin/ %w[libncursesw.dylib libcursesw.dylib libncurses.dylib libcurses.dylib] else - %w[libncursesw.so libcursesw.so libncurses.so libcurses.so] + %w[libncursesw.so libcursesw.so libncurses.so libcurses.so + libncursesw.so.6 libncurses.so.6] end end |