Giter Site home page Giter Site logo

consoleui's Introduction

Build Status

Console UI

Join the chat at https://gitter.im/awegmann/consoleui

Tiny java library that provides simple UI elements on ANSI console based terminals. ConsoleUI is inspired by Inquirer.js which is written in JavaScript.

Intention

I was impressed by JavaScript based Yeoman which leads the user through the process of creating new projects by querying with a simple user interface on the console. An investigation how this is done, brought me to Inquirer.js which implements a very simple and intuitive set of controls for checkbox, list and text input.

Because I didn't found anything comparable to this in the Java eco system, I decided to write Console UI as a library with the same easy 'look and feel'. Some parts of the API are also comparable, but Console UI is not a Java clone of Inquirer.js.

Features

Console UI currently supports:

  • Text input with completion and GNU ReadLine compatible editing
  • Checkboxes
  • Lists
  • Expandable Choices (multiple key based answers for a question with help and optional list navigation)
  • Yes/No-Questions

Dependencies

Console UI uses jansi and jline for the dirty console things.

Test Run

You can get an idea how the project works by looking at de.codeshelf.consoleui.Basic. You can run this by executing the following from the project root:

gradlew fatJar java -jar build/libs/consoleui-all-0.0.10.jar

consoleui's People

Contributors

awegmann avatar gitter-badger avatar mtyson avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.