RuTui Logo

RuTui

RuTui is a lightweight, pure ruby alternative to known commandline interfaces like nCurses. Most CLI/TUI Frameworks sit on an C like approach, are very limited or are just not beautiful enough to use. This lib aims to be different, to be easy, modular and just Ruby like to handle. There is an inbuild color support and input controlling which sits on top of unix standard.

Take a look at the wiki

Features

  • Fully textbased interfaces
  • No depencies (except ruby)
  • 255 Colors (atleast in Unix)
  • FIGlet font support
  • Own dynamic image format
  • Sprites (with animation)
  • Basic themeing
  • Prebuild Elements to draw
  • Tables
  • ...

You can use this in many different application purposes. You can create simple CLI's for your scripts, you can make awesome ASCII based data visualisations. Its also basicly a small game engine.

Installation

sudo gem install rutui

If you are on windows please take a look at Ansicon.

Changelog

  • 0.5
    • Fixed refactoring bugs
    • Added "Dot" object
    • Add color inheritance (trough -1) to objects
    • Added Timeout for Screenmanager for a minimal time per operation
  • 0.4
    • Refactor structure
    • better printing (much less flicker)
    • New objects: Tables, Textfields
    • Adding cmd.exe support (colors only trough Ansicon)
  • 0.3
    • Fixes, fixes, fixes
  • 0.2 (beta)
    • Rolling updates
  • 0.1 (alpha)
    • Rolling updates

License

This Project is licensed under the MIT License

Copyright (c) 2012 Roman Pramberger Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.