Bindings for libncursesw and crt class
- crystal: 0.22.0
Add this to your application's shard.yml
:
dependencies:
crt:
github: maiha/crt.cr
version: 0.3.0
require "crt"
win = Crt::Window.new(24, 80)
win.clear
win.print(5, 10, "hello world")
win.refresh
Crt.done
See ./examples/ for more usages.
- for ubuntu
apt-get install libncursesw5-dev
apt-get install libgpm-dev # needs only for static link
- Fork it ( https://github.com/maiha/crt.cr/fork )
- 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
- maiha maiha - creator, maintainer