ruby/curses
소개
curses, ncurses, PDCurses용 Ruby 바인딩입니다. 이전에는 Ruby 표준 라이브러리의 일부였습니다.
개발 도구측정된 스타 증가
- in 24h
- 0
- in 7 days
- 0
- in 15 days
- 0
- in 1 month
- 기록 수집 중
서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.
README.md
Originalcurses
Description
A Ruby binding for curses, ncurses, and PDCurses. curses is an extension library for text UI applications.
Formerly part of the Ruby standard library, curses was removed and placed in this gem with the release of Ruby 2.1.0. (see ruby/ruby@9c5b2fd)
Install
$ gem install curses
Requires ncurses or ncursesw (with wide character support). On Debian based distributions, you can install it with apt:
$ apt install libncurses5-dev
Or
$ apt install libncursesw5-dev
On Windows, gem install curses will build bundled PDCurses, so you
don't need to install extra libraries.
However, if you prefer ncurses to PDCurses, specify the following option:
> gem install curses -- --use-system-libraries
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
Type the following command, and see [rdoc] of curses:
gem install rubygems-server
gem server -l
Limitations
- On ncurses 6+ compiled with extended color support, more than 256 color pairs are supported transparently via the extended colors API (
init_extended_pair, etc.). UseCurses.support_extended_colors?to check at runtime.
Developers
After checking out the repo, run bundle install to install dependencies.
To compile the extension library, run bundle exec rake compile.
To install this gem onto your local machine, run bundle exec rake install. To release a new version, update the version number in curses.gemspec, and then run bundle exec rake release, which will create a git tag for the version, push git commits and tags, and push the .gem file to rubygems.org.
License
curses is released under the Ruby and 2-clause BSD licenses. See COPYING for details.
It includes PDCursesMod, which is in the public domain:
https://github.com/Bill-Gray/PDCursesMod
The version for Win32 console mode in the wincon subdirectory is used.
관련 프로젝트 살펴보기
불러오는 중…