Comments (3)
Thanks @shugo
It took me a while to understand what I had to do but after running the command below sample/menu.rb
now works 👍
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 my machine.
I've created a small PR to update the README.md #84
from curses.
I'm not really familiar with C bindings library.
I tried to run ruby extconf.rb
and these are the logs.
ruby extconf.rb
checking for tgetent() in -ltinfow... no
checking for tgetent() in -ltinfo... no
checking for tgetent() in -ltermcap... yes
checking for ncursesw/curses.h... no
checking for ncurses.h... yes
checking for initscr() in -lncursesw... no
checking for initscr() in -lncurses... yes
header: ncurses.h
library: ncurses
checking for beep()... yes
checking for bkgd()... yes
checking for bkgdset()... yes
checking for curs_set()... yes
checking for deleteln()... yes
checking for doupdate()... yes
checking for flash()... yes
checking for getbkgd()... yes
checking for getnstr()... yes
checking for init()... no
checking for init in ncurses.h... no
checking for isendwin()... yes
checking for keyname()... yes
checking for keypad()... yes
checking for resizeterm()... yes
checking for scrl()... yes
checking for set()... no
checking for set in ncurses.h... no
checking for setscrreg()... yes
checking for ungetch()... yes
checking for addnwstr()... yes
checking for wattroff()... yes
checking for wattron()... yes
checking for wattrset()... yes
checking for wbkgd()... yes
checking for wbkgdset()... yes
checking for wdeleteln()... yes
checking for wgetnstr()... yes
checking for wresize()... yes
checking for wscrl()... yes
checking for wsetscrreg()... yes
checking for werase()... yes
checking for redrawwin()... yes
checking for waddnwstr()... yes
checking for mvderwin()... yes
checking for derwin()... yes
checking for touchwin()... yes
checking for untouchwin()... yes
checking for wtouchln()... yes
checking for is_linetouched()... yes
checking for is_wintouched()... yes
checking for def_prog_mode()... yes
checking for reset_prog_mode()... yes
checking for timeout()... yes
checking for wtimeout()... yes
checking for nodelay()... yes
checking for init_color()... yes
checking for wcolor_set()... yes
checking for use_default_colors()... yes
checking for assume_default_colors()... yes
checking for newpad()... yes
checking for unget_wch()... yes
checking for get_wch()... yes
checking for wget_wch()... yes
checking for PDC_get_key_modifiers()... no
checking for PDC_get_key_modifiers in ncurses.h... no
checking for convertible type of chtype... unsigned int
checking for _XOPEN_SOURCE_EXTENDED... yes
checking for ESCDELAY in ncurses.h... yes
checking for TABSIZE in ncurses.h... yes
checking for COLORS in ncurses.h... yes
checking for COLOR_PAIRS in ncurses.h... yes
checking for function curses_version in ncurses.h... yes
checking for variable curses_version in ncurses.h... no
checking for ncursesw/menu.h... no
checking for ncurses/menu.h... no
checking for curses/menu.h... no
checking for menu.h... yes
checking for new_menu() in -lmenuw... no
checking for new_menu() in -lmenu... no
checking for ncursesw/form.h... no
checking for ncurses/form.h... no
checking for curses/form.h... no
checking for form.h... yes
checking for new_form() in -lformw... no
checking for new_form() in -lform... yes
checking for form_driver_w()... no
checking for sizeof(WINDOW) is available... no
checking for sizeof(MEVENT) is available... yes
checking for sizeof(ITEM) is available... yes
checking for sizeof(MENU) is available... yes
checking for sizeof(FIELD) is available... yes
checking for sizeof(FORM) is available... yes
creating extconf.h
creating Makefile
from curses.
It seems that ncurses of macOS does not support menu:
https://stackoverflow.com/questions/56622042/clang-on-macos-fails-linking-lmenu-from-ncurses
Could you try installing ncurses by Homebrew?
from curses.
Related Issues (20)
- Pass ansi color codes straight through to a curses window? HOT 2
- Compatibility with Ruby 2.7 on Windows HOT 3
- Documentation is incomplete
- Curses::addch doesn't support attributes HOT 2
- Support for chgat?
- Not Displaying Wide Characters HOT 2
- Curses versus Ncurses confusion HOT 2
- Are some files missing on the .gem release? HOT 2
- Encoding issues HOT 1
- Curses.get_char fails on multibyte characters HOT 2
- sample/color.rb error HOT 15
- error: unknown warning option '-Wno-cast-function-type'; did you mean '-Wno-bad-function-cast'? [-Werror,-Wunknown-warning-option]
- Gem document is incomplete and lack of examples.
- Use NUM2CHTYPE()/CHTYPE2NUM() in window_attron/attroff/attrset/color_pair?
- gem installation warning: "Couldn't find file to include xyz" HOT 1
- 256 colours support in ncurses?
- I think there is an error in https://github.com/ruby/curses/blob/master/sample/form.rb HOT 1
- NCURSES_EXT_COLORS - see python HOT 2
- Does not compile and cannot be installed on macOS (Apple Silicon) HOT 17
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from curses.