Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Python terminal emulation

I'd like to have an xterm-compatible virtual terminal running inside a Python app. I'll need to run ncurses-based applications inside it, feed it with user's input and read its output.

So far I've found python-vte, but it only provides a GTK+ widget (libvte has the required VtePty class, but Python bindings don't) and has an unacceptable libgtk dependency.

Is there any other way to perform a teminal emulation in Python?

like image 631
Eugene Pankov Avatar asked May 20 '11 11:05

Eugene Pankov


2 Answers

After all, I've found the pyte, which is exactly what I wanted.

like image 164
Eugene Pankov Avatar answered Sep 22 '22 18:09

Eugene Pankov


Have you looked at this VT100 terminal emulator, also described in blog form here? It's not an xterm emulator, but perhaps it can be leveraged for your purposes.

like image 26
Lance Richardson Avatar answered Sep 21 '22 18:09

Lance Richardson