Bash-Visual
Bash visualisation library
Description
BashVisual simplifies Unix-console operation (sh, bash, csh etc). It uses tput and standard Unix-terminal facilities. It is also thread-safe.
BashVisual allows:
- control position, colors and text's form
- draw graphical primitives (rectangle, window)
- create dynamic scrolling objects
- get window parameters (weight, height)
Installation
Add this line to your application's Gemfile:
gem 'bash-visual'
And then execute:
$ bundle
Or install it yourself as:
$ gem install bash-visual
Usage
require 'bash-visual'
include Bash_Visual
console = Console.new
console.clear
console.draw_window([3, 3], [18, 5], 'Example') {{font: Font.new(:std, :red)}}
console.write_to_position 5, 4, 'Hello World!', Font.new(:bold)
console.position = [0, 8]
Contributing
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Added some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request