selectel / pyte

Simple VTXXX-compatible linux terminal emulator
http://pyte.readthedocs.org/
GNU Lesser General Public License v3.0
653 stars 101 forks source link

correct capture #83

Closed ianmiell closed 7 years ago

ianmiell commented 7 years ago

I tried the first example, but it didn't work, so this is my attempt to fix:

Also, I think it would be good to have a check on python version. I assume only 3 is supported.

superbobry commented 7 years ago

Hi Ian. Thanks for the PR. The example was indeed assuming Python3. As for Stream.attach, the recommended way of attaching a screen in the upcoming 0.6.0 release is by passing it in the constructor. This is new API and it only works for the master version for now.