Skip to content
This repository was archived by the owner on Oct 26, 2025. It is now read-only.
/ natty-ui Public archive

This is the beautiful, nice, nifty, fancy, neat, pretty, cool, rich, lovely, natty user interface you like to have for your CLI.

License

Notifications You must be signed in to change notification settings

mblumtritt/natty-ui

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

51 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Important

I archived this repo here and moved it to Codeberg for several reasons.
🛠️ It's still active there!

NattyUI ​ᓚᕠᗢ version

This is the beautiful, nice, nifty, fancy, neat, pretty, cool, rich, lovely, natty user interface you like to have for your command line applications. It contains elegant, simple and beautiful tools that enhance your command line interfaces functionally and aesthetically.

Features

illustration

  • automatic line break of all text output
  • markup of text attributes and colors using a BBCode like syntax
  • automatic detection if ANSI is available
  • support of NO_COLOR convention
  • support of CSIu input protocol
  • headings
  • text separators
  • lists
  • various types of text blocks with automatic alignment
  • text columns
  • tables
  • task lists
  • progress indicators
  • and more!

Help

📕 See the online help and have a look at the examples directory to learn from code.

Run Examples

You can execute all examples by

ruby ./examples/examples.rb

or see the non-ANSI version

NO_COLOR=1 ruby ./examples/examples.rb

Installation

You can install the gem in your system with

gem install natty-ui

or you can use Bundler to add NattyUI to your own project:

bundle add natty-ui

After that you only need one line of code to have everything together

require 'natty-ui'

About

This is the beautiful, nice, nifty, fancy, neat, pretty, cool, rich, lovely, natty user interface you like to have for your CLI.

Topics

Resources

License

Stars

Watchers

Forks

Languages