title: Feed command to Bash and get its output, via Pyte
body: <p>I need to write Python script, which runs Bash (on Linux) and catches its output with color  attributes, to <a href="https://github.com/selectel/pyte/" rel="nofollow noreferrer">Pyte</a> Screen object. Pyte has some examples. Example <code>nanoterm</code> shows how to run some process and put its output to Screen object. It doesn't work on Ubuntu x64 - script does nothing (I run it with &quot;/bin/bash&quot; param).</p>
  <p>Maybe I need some other python library? I also cannot see how to put some command to new Bash. Eg <code>ls</code>. Pyte example cannot do it.</p>