Skip to content

python terminal memu (一个快速创建命令行菜单的工具)

License

Notifications You must be signed in to change notification settings

gojuukaze/tty_menu

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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 一个快速创建命令行菜单的工具

demo

Install

pip install tty_menu

Example

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 (更改显示菜单的方式,不在需要清屏了)

Releases

No releases published

Packages

No packages published

Languages