Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/maiha/crt.cr
Bindings for libncursesw and crt class
https://github.com/maiha/crt.cr
Last synced: 4 days ago
JSON representation
Bindings for libncursesw and crt class
- Host: GitHub
- URL: https://github.com/maiha/crt.cr
- Owner: maiha
- License: mit
- Created: 2016-06-24T14:17:16.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2021-03-19T18:48:42.000Z (over 3 years ago)
- Last Synced: 2024-08-01T17:32:09.063Z (3 months ago)
- Language: Crystal
- Size: 30.3 KB
- Stars: 27
- Watchers: 4
- Forks: 10
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-crystal - crt.cr - Bindings for libncursesw and crt (C bindings)
- awesome-crystal - crt.cr - Bindings for libncursesw and crt (C bindings)
- awesome-crystal - crt.cr - Bindings for libncursesw and crt (C bindings)
README
# crt.cr [![Build Status](https://travis-ci.org/maiha/crt.cr.svg?branch=master)](https://travis-ci.org/maiha/crt.cr)
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`:
```yaml
dependencies:
crt:
github: maiha/crt.cr
version: 0.4.2
```## Usage
```crystal
require "crt"Crt.init
window = Crt::Window.new(5, 21)
window.print(2, 4, "Hello, world!")
window.refreshsleep 10.seconds
Crt.done
```See [./examples/](./examples/) for more usages.
## Supported C Functions
- see: https://github.com/maiha/crt.cr/blob/master/src/libncursesw.cr
## Development
- for ubuntu
```shell
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](https://github.com/maiha) maiha - creator, maintainer