Python interactive CLI application?

2019-01-18 22:16发布

I'm not even sure what these would be called? I used to write them in ADA running on VAX-VMS!

I want to make a simple menu-driven application that would let me display menus and use the cursor keys to navigate around them, choose items and navigate around the app. All fully old school text based.

I want to be able to take over the whole terminal window and display stuff in different places.

Is this possible in Python?

3条回答
倾城 Initia
2楼-- · 2019-01-18 22:40

Another easy to use library is Urwid - Console User Interface Library.

http://excess.org/urwid/

http://excess.org/urwid/examples.html

查看更多
Viruses.
3楼-- · 2019-01-18 22:44

Yes, have a look at the different curses implementations.

查看更多
兄弟一词,经得起流年.
4楼-- · 2019-01-18 22:52

Check out the Python HOWTO on Curses Programming with Python and here is the library reference.

查看更多
登录 后发表回答