https://github.com/gojuukaze/tty_menu
python terminal memu (一个快速创建命令行菜单的工具)
https://github.com/gojuukaze/tty_menu
command command-line-menu console console-menu menu terminal terminal-menu
Last synced: 5 months ago
JSON representation
python terminal memu (一个快速创建命令行菜单的工具)
- Host: GitHub
- URL: https://github.com/gojuukaze/tty_menu
- Owner: gojuukaze
- License: gpl-3.0
- Created: 2018-01-15T03:49:14.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2020-06-09T14:31:16.000Z (about 6 years ago)
- Last Synced: 2025-10-28T10:22:56.658Z (8 months ago)
- Topics: command, command-line-menu, console, console-menu, menu, terminal, terminal-menu
- Language: Python
- Homepage:
- Size: 400 KB
- Stars: 13
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Note
This repo is no longer maintained
My New repo support Windows, Linux, OSX at terminal_layout
这个库不再维护,新的库支持Windows, Linux, OSX。链接 -> terminal_layout
tty_menu
==========================
This project is used to create menu command-line
一个快速创建命令行菜单的工具

Install
----------------------
```bash
pip install tty_menu
```
Example
----------------------
```python
from tty_menu import tty_menu
l = ['a', 'b', 'c']
pos = tty_menu(l, "What is your word?")
print("Your word is %s" % (l[pos]))
```
chang_log
----------------
* 1.0.2 : rm log (移除无用log)
* 1.0.3 : change way (更改显示菜单的方式,不在需要清屏了)