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?
Command-line applications, also referred to as Console Applications, are computer programs designed to be used from a text interface, such as a shell.
The IBM MobileFirst™ Platform Command Line Interface (CLI) supports two modes of operation: interactive mode and direct mode.
How to Run Python Code Interactively. A widely used way to run Python code is through an interactive session. To start a Python interactive session, just open a command-line or terminal and then type in python , or python3 depending on your Python installation, and then hit Enter .
Check out the Python HOWTO on Curses Programming with Python and here is the library reference.
Another easy to use library is Urwid
- Console User Interface Library.
http://excess.org/urwid/
http://excess.org/urwid/examples.html
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With