Skip to content

Commit

Permalink
Add MacOS directives to install curses with menu support
Browse files Browse the repository at this point in the history
It seems that macos ncurses menu isn't supported by default. Using homebrew
libraries with ncurses solve this problem.

https://stackoverflow.com/questions/56622042/clang-on-macos-fails-linking-lmenu-from-ncurses
  • Loading branch information
AlexB52 committed Nov 23, 2023
1 parent 4761c49 commit 1edd00c
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,13 @@ However, if you prefer ncurses to PDCurses, specify the following option:

On mingw, you need DevKit to compile the extension library.

On MacOS, `ncurses` menu isn't natively supported. You can install the gem with menu support using homebrew:

brew install ncurses
gem install curses -- --use-system-libraries --with-ncurses-dir=/usr/local/opt/ncurses

_with `/usr/local/opt/ncurses` the path where homebrew installed ncurses on your machine_

## Documentation

See [https://www.rubydoc.info/gems/curses](https://www.rubydoc.info/gems/curses).
Expand Down

0 comments on commit 1edd00c

Please sign in to comment.