crt.cr

Bindings for libncursesw and crt class

crt.cr Build Status

Bindings for libncursesw and crt class

  • crystal: 0.27.2 0.31.1 0.32.1 0.33.0

Installation

Add this to your application's shard.yml:

dependencies:
  crt:
    github: maiha/crt.cr
    version: 0.4.2

Usage

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.

Supported C Functions

Development

  • for ubuntu
apt-get install libncursesw5-dev
apt-get install libgpm-dev        # needs only for static link

Contributing

  1. Fork it ( https://github.com/maiha/crt.cr/fork )
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Pull Request

Contributors

  • maiha maiha - creator, maintainer
Repository

crt.cr

Owner
Statistic
  • 27
  • 10
  • 5
  • 12
  • 0
  • about 3 years ago
  • June 24, 2016
License

MIT License

Links
Synced at

Sat, 04 May 2024 00:50:53 GMT

Languages