https://github.com/qu4tro/targetbox
A simple and generic menu for the command line
https://github.com/qu4tro/targetbox
command-line-tool library menu menu-navigation tui
Last synced: 10 months ago
JSON representation
A simple and generic menu for the command line
- Host: GitHub
- URL: https://github.com/qu4tro/targetbox
- Owner: Qu4tro
- License: mit
- Created: 2016-02-03T05:54:11.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2019-08-17T14:00:20.000Z (almost 7 years ago)
- Last Synced: 2025-03-04T21:02:11.046Z (about 1 year ago)
- Topics: command-line-tool, library, menu, menu-navigation, tui
- Language: Python
- Size: 10.7 KB
- Stars: 3
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
targetbox
========
*Fast TUI prototyping*
Quick usage overview:
```python
>>> from targetbox import Menu
>>> content = range(100)
>>> menu = Menu(content)
```

Why **targetbox**?
----------
That's a good question. **targetbox** takes inspiration from other projects like
[Choose](https://github.com/geier/choose),
[Pick](https://github.com/thoughtbot/pick) and
[Selecta](https://github.com/garybernhardt/selecta).
However these tools only let you choose a option and do one thing with it.
targetbox is a new alternative that is more extensible! You can:
Set your own keybindings that act on the selected text,
Change the colorscheme to your own liking and a lot more.
The Basics
----------
```python
>>> from targetbox import Menu
>>> content = range(100)
>>> menu = Menu(content=content,
keybindings=keybindings
colorscheme=colorscheme)
```