Skip to main content

No project description provided

Project description


A collection of curses utils for performing simple UI tasks.
Currently this includes a simple console and a menu with
vi-like bindings.


Requires python 3.

``pip3 install curses-util`` should do the trick, or else
``python install`` from source.


A simple console with a single line input window.


import curses_util

def handler(console, input):
console.log("Got input: " + input)

console = curses_used.SimpleConsole(handler)


This can be used to vend a collection of items which the user may then
select one or more of. Navigation can be performed using standard vi
bindings (count operands are also supported) or via the arrow
keys. Multiple items can be selected if the user presses m over each
of the items they wish to select and then presses enter.


import curses_util

menu = curses_util.Menu()

items = [ str(i) for i in range(100) ]
selected = menu.vend(items)

print("The following items were selected: \n")
print("\n".join(items), "\n")

Bugs, etc..

If you bother to read the code and invariably feel the need to abuse
the person who wrote it, know that such sentiments will be happily
received at

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for curses-util, version 0.0.2
Filename, size File type Python version Upload date Hashes
Filename, size curses-util-0.0.2.tar.gz (4.6 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page