readline
Crystal bindings to GNU Readline Library.
Installation
-
Add the dependency to your
shard.yml
:dependencies: readline: github: crystal-lang/crystal-readline
-
Run
shards install
Usage
require "readline"
user_input = Readline.readline("> ")
Contributing
- Fork it (https://github.com/crystal-lang/crystal-readline/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