Bindings for libncursesw and crt class
- crystal: 0.27.2 0.31.1 0.32.1 0.33.0
Add this to your application's shard.yml
:
dependencies:
crt:
github: maiha/crt.cr
version: 0.4.2
require "crt"
Crt.init
window = Crt::Window.new(5, 21)
window.print(2, 4, "Hello, world!")
window.refresh
sleep 10.seconds
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