Skip to content
forked from maiha/crt.cr

Bindings for libncursesw and crt class

License

Notifications You must be signed in to change notification settings

jeffbdavenport/crt.cr

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

47 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.3

Usage

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.

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

About

Bindings for libncursesw and crt class

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Crystal 93.2%
  • Makefile 6.8%