Project

termichunk

0.0
No release in over 3 years
Low commit activity in last 3 years
Organize chunks of text within terminals
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

>= 0
>= 0
>= 0
>= 0
 Project Readme

TermiChunk Build Status Gem Version

Take large chunks of text that might otherwise run together, and organize them neatly within your terminal output.

Originally developed for Simulmedia.

Installation

Add this line to your application's Gemfile:

# update with the version of your choice
gem 'termichunk'

And then execute:

$ bundle install

Or install it yourself as:

$ gem install termichunk

Usage

Create reports. Nest them within each other. Bring sanity to your outputs.

report = TermiChunk::Report.new(title: 'My Report')
report << 'Line one goes in here'
report << 'Another line here!'
puts report

┌─[ My Report ]──────────
 Line one goes in here
 Another line here!
└─[ My Report ]──────────

puts(TermiChunk::Report.new(title: 'AMAZING', padding: 1) do |parent|
  parent << 'I can write some stuff here'
  parent << report
end)

┌─[ AMAZING ]────────────────────

  I can write some stuff here

  ┌─[ My Report ]──────────
   Line one goes in here
   Another line here!
  └─[ My Report ]──────────


└─[ AMAZING ]────────────────────

Problems?

Please submit an issue. We'll figure out how to get you up and running with TermiChunk as smoothly as possible.