ncurses
Version, currently 1.1.09 versions
github.com/SamualLB/ncurses
Ncurses bindings for Crystal
29 stars
7 dependents
License: MIT
Installation
# Add this to your shard.yml
dependencies:
ncurses:
github: SamualLB/ncurses
version: ~> 1.1.0Then run:
shards installshard.yml
- Crystal
1.0.0- License
- MIT
- Authors
- Joakim Reinert, Samual Black
Dependencies
This version declares no dependencies.
README
ncurses
Ncurses Bindings for Crystal
Installation
- Add this to your application's
shard.yml:
dependencies:
ncurses:
github: SamualLB/ncurses
- Run
shards install
NOTE: You may need to install the wide ncurses development library libncursesw5-dev (Debian)
Usage
require "ncurses"
Basic Printing
NCurses.start
NCurses.print "Hello world!"
NCurses.end
Run Examples
Prints input
$ crystal run examples/input.cr
Displays text with attributes
$ crystal run examples/attributes.cr
Displays text with colors
$ crystal run examples/colors.cr
Shows separate windows
$ crystal run examples/windows.cr
Mouse interaction with individual windows
$ crystal run examples/window_enclose.cr
Scroll when overflowing window
$ crystal run examples/scroll.cr
Contributing
- Fork it ( https://github.com/SamualLB/ncurses.git )
- Create your feature branch (git checkout -b my-new-feature)
- Commit your changes (git commit -am 'Add some feature')
- Push to the branch (git push origin my-new-feature)
- Create a new Pull Request
Contributors
- (https://github.com/jreinert) Joakim Reinert - creator, maintainer
- (https://github.com/SamualLB) Samual Black - maintainer
Documentation
Built from the current release. The first visit to a release nobody has asked for starts its build.
Links
This release
- Version
1.1.0- Tagged
- Mar 28, 2021
- Commit
8e1bebaeaafd- Crystal
1.0.0- Indexed
- yes
Dependents
Repository
github.com/SamualLB/ncurses
Metadata
- Created
- Aug 12, 2026
- Updated
- Sep 24, 2026
- Synced
- Sep 24, 2026
- Versions
- 9