Skip to content

Commit 1edd00c

Browse files
committed
Add MacOS directives to install curses with menu support
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
1 parent 4761c49 commit 1edd00c

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,13 @@ However, if you prefer ncurses to PDCurses, specify the following option:
3737

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

40+
On MacOS, `ncurses` menu isn't natively supported. You can install the gem with menu support using homebrew:
41+
42+
brew install ncurses
43+
gem install curses -- --use-system-libraries --with-ncurses-dir=/usr/local/opt/ncurses
44+
45+
_with `/usr/local/opt/ncurses` the path where homebrew installed ncurses on your machine_
46+
4047
## Documentation
4148

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

0 commit comments

Comments
 (0)