Bindings for libncursesw and crt class
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.
apt-get install libncursesw5-dev
apt-get install libgpm-dev # needs only for static link