lantz/mininet — comment on commit 049a51dadbaaebdb6d9e7ac38354ea23c084afe8
File:  line 0
By lantz:

This may be exactly what I was looking for: the Python pty module - who knew? ;-)

Anyway, I think I like Ed's changes here:

first, we change the prompt to chr(127) to detect command completion (I tried this before but it didn't seem to work well).
second, we use sudo mn so that mininet itself doesn't have to run as root (though we should consider whether the host shells should still be root)
third, we use real pty's to avoid the horrible control-C-kills-your-xterms-and-everything probloem