term

A library for easily writing text user interfaces.

Installation

Add this to your application's shard.yml:

dependencies:
  term:
    github: bmmcginty/term

Usage

require "./src/term"
w=MainWindow.new
tc=EditControl.new text: "00:00:00", height: 1
w.add tc
w.run
while 1
tc.text=Time.local.to_s("%H:%M:%S")
w.refresh
sleep 1
end

Testing

Specs will be added, and results will be validated by way of full screen dumps.

Development

add controls to src/controls/control_name.cr. Writing code for controls is the most time consuming task at this point. Each control should:

Contributing

  1. Fork it ( https://github.com/bmmcginty/term/fork )
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Pull Request

Contributors