0

I want to create option menus for a terminal application where the user can select in similar way as Yeoman or Bower and also to change the colors of the letters as there is done with those applications.

I searched in internet but I couldn't find any library.

Any recommendation?

Better if there is a library in Python to do this. But also in any other language is fine. I just want to know the different options available.

perseus
  • 1,322
  • 1
  • 16
  • 22

1 Answers1

0

ASCII Escape Sequences

This is a language independent option. The way it work is that you print some special characters which are interpreted by the terminal and it changes (for example) the color.

It wouldn't, however, help you with handling the keyboard input.

More informations

Related question on the StackOverflow

ncurses

This is a widely used library on the Linux and it's mostly used in C/C++ applications. However, the Python binding is available too.

About ncurses

ncurses homepage

ncurses tutorial

curses in Python

lanterna

A Java library similar to ncurses.

project home

blacken

A Java library inspired by ncurses and primarily dedicated for the game development.

project home


Related StackOverflow Questions

Input in a Python text-based GUI (TUI)

Print in terminal with colors using Python?

Python Text User Interface

Community
  • 1
  • 1
tzima
  • 1,285
  • 1
  • 10
  • 23
  • Curses for python is definitely what I was searching. Thanks Tomas – perseus Nov 10 '14 at 03:12
  • I use UNIX and curses works fine, but I think it does not work in Windows. This library: [Unicurses](http://sourceforge.net/projects/pyunicurses/) works even in Windows for those that need it. – perseus Nov 10 '14 at 03:25