libtermkey-cr
libtermkey-cr
Crystal bindings to the libtermkey library.
Installation
-
Add the dependency to your
shard.yml:dependencies: libtermkey-cr: github: bmmcginty/libtermkey-cr -
Run
shards install
Usage
require "./src/termkey"
STDIN.raw do
tk=Termkey.new STDIN, LibTermkey::Flags::Notermios
res=tk.waitkey
puts "#{res} #{tk.key} #{tk.strfkey}"
tk=nil
end
Development
See src/lib_termkey.cr for available functions.
Contributing
- Fork it (https://github.com/bmmcginty/libtermkey-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
Contributors
- Brandon McGinty - creator and maintainer
Repository
libtermkey-cr
Owner
Statistic
- 0
- 0
- 0
- 0
- 0
- about 1 year ago
- October 28, 2024
License
MIT License
Links
Synced at
Wed, 19 Nov 2025 13:45:46 GMT
Languages