Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/pocke/flowterm
String flows in a terminal.
https://github.com/pocke/flowterm
Last synced: about 2 months ago
JSON representation
String flows in a terminal.
- Host: GitHub
- URL: https://github.com/pocke/flowterm
- Owner: pocke
- Created: 2017-07-02T02:27:50.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2017-10-21T10:06:33.000Z (about 7 years ago)
- Last Synced: 2024-05-01T23:20:58.202Z (8 months ago)
- Language: Ruby
- Homepage:
- Size: 11.7 KB
- Stars: 5
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Flowterm
String flows in a terminal.
## Installation
Add this line to your application's Gemfile:
```ruby
gem 'flowterm'
```And then execute:
$ bundle
Or install it yourself as:
$ gem install flowterm
## Basic Usage
```bash
# "meow" flows in the terminal.
$ echo meow | flowterm# "meow"(ASCII Art) flows in the terminal.
$ banner meow | flowterm# "meow" that is said by a cow flows in the terminal.
$ cowsay meow | flowterm$ flowterm --help
Usage: flowterm [options]
--speed=speed
--[no-]trap
```![basic-usage-animation](https://user-images.githubusercontent.com/4361134/27766824-dbc14eda-5f19-11e7-9b74-6f7c679bde82.gif)
![cowsay-animation](https://user-images.githubusercontent.com/4361134/27766843-d7e6297e-5f1a-11e7-9fab-7e83bdc13621.gif)
## Advanced Usage
If you use zsh, you can run a command by this command when you typo the command.
```zsh
# .zshrc
command_not_found_handler()
{
banner "$*" | flowterm
echo "command not found: $*"
return 127
}
```![command-not-found-usage](https://user-images.githubusercontent.com/4361134/27766826-04215de8-5f1a-11e7-88dd-95b829581b69.gif)
License
-------These codes are licensed under CC0.
[![CC0](http://i.creativecommons.org/p/zero/1.0/88x31.png "CC0")](http://creativecommons.org/publicdomain/zero/1.0/deed.en)