via-xterm

Connect Python script to xterm


License
BSD-3-Clause
Install
pip install via-xterm==0.1.2

Documentation

via-xterm: connect Python script to xterm

Usage

via-xterm script [argument ...]

How is this useful?

To simplify debugging of scripts, that use escape sequences/curses/urwid, in an IDE (e.g. PyCharm). Normally IDEs' integrated consoles do not handle all the escape sequences, so one has to either live with that or use remote debugging.

via-xterm wraps the target script in a way that its stdin/stdout are connected to a new xterm -S instance, which handles the user interaction. Debugging the target script is possible, because it is run using compile() and exec() builtins.