Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

Ruby binding for curses, ncurses, and PDCurses. Formerly part of the ruby standard library.

License

NotificationsYou must be signed in to change notification settings

ruby/curses

Repository files navigation

Gem Versionubuntuwindowsmacos

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 gemwith the release of Ruby 2.1.0. (seeruby/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 youdon'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 ncursesgem 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 server -l

Limitations

Developers

After checking out the repo, runbundle install to install dependencies.

To compile the extension library, runbundle exec rake compile.

To install this gem onto your local machine, runbundle exec rake install. To release a new version, update the version number incurses.gemspec, and then runbundle exec rake release, which will create a git tag for the version, push git commits and tags, and push the.gem file torubygems.org.

License

curses is released under the Ruby and 2-clause BSD licenses. See COPYING fordetails.

It includes a forked version of PDCurses, which is in the public domain:

https://github.com/Bill-Gray/PDCurses

The version for Win32 console mode in the wincon subdirectory is used.

About

Ruby binding for curses, ncurses, and PDCurses. Formerly part of the ruby standard library.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

[8]ページ先頭

©2009-2025 Movatter.jp