shellshare icon indicating copy to clipboard operation
shellshare copied to clipboard

Open the shell directly instead of relying on script

Open vitorbaptista opened this issue 12 years ago • 3 comments

I would like to remove our dependency on script. Our usage is too basic, and I think we can get rid of it without much work.

Basically, what we need to do is open the terminal process and grab its stdin/stdout, while also sending them to the user. We're doing a MITM attack. In Python, I guess it would be possible to use Popen3.

As a reference, check how tty.js did it. They used node, and didn't replayed the terminal's output to the user, but the idea is the same.

vitorbaptista avatar Jul 15 '13 12:07 vitorbaptista

Are you talking about https://github.com/chjj/tty.js/blob/master/lib/tty.js?

domoritz avatar Jul 15 '13 20:07 domoritz

https://github.com/sickill/ascii.io-cli/blob/master/bin/asciiio

This is what I would like: everything in Python, no external dependencies.

vitorbaptista avatar Aug 18 '13 23:08 vitorbaptista

Looks like #55 needs that feature very much. Not only in MS Windows but any OS that supports Python.

edmundlaugasson avatar Mar 03 '18 14:03 edmundlaugasson