screen.cr v0.2.7
screen
Crystal port of screen package (Go), to provide an easy way to clear the screen or move the cursor in cross-platform way (Linux, Mac OS, Windows).
Installation
-
Add the dependency to your
shard.yml
:dependencies: screen: github: mdwagner/screen.cr version: "~> 0.2.0"
-
Run
shards install
Usage
require "screen"
Screen.clear # Clear all the characters on the screen
Screen.move_top_left # Moves the cursor to the top-left position of the screen
Screen.cls # Performs both methods above (typical `cls` or `clear` terminal behavior)
Contributing
- Fork it (https://github.com/mdwagner/screen/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
Repository
screen.cr
Owner
Statistic
- 1
- 0
- 0
- 0
- 0
- about 1 year ago
- March 24, 2023
License
MIT License
Links
Synced at
Sat, 04 May 2024 19:38:33 GMT
Languages