S
S
skynetmen2014-12-24 15:40:21
linux
skynetmen, 2014-12-24 15:40:21

How to redirect /dev/tty console to (TUI) script written in python + urwid?

There is a script in python + urwid, nothing serious, a small two-level menu with the output of some information.
Displaying the work of the script in the console is not difficult,
./script.py > /dev/tty1
but I would like to not only display it there, but to fully manage it, navigate through the menu items, and so on.
Please tell me in which direction to dig and is it possible to implement this at all?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
E
Eddy_Em, 2014-12-24
@Eddy_Em

The easiest way to implement menus in the console is with libncurses.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question