title: Does Python console limit output size
body: <p>I'm trying to execute command in Python like this:</p>
  
  <pre><code>os.system('ls')
  </code></pre>
  
  <p>What's interesting is that the output length is limited by the terminal window size where I'm running this python console.</p>
  
  <pre><code>&gt;&gt;&gt;os.system('ls -l')
  total 0
  -rw-r--r-- 1 hy hy 0 Apr 29 22:30 a.txt
  -rw-r--r-- 1 hy hy 0 Apr 29 22:31 b.txt
  -rw-r--r-- 1 hy hy 0 Apr 29 22:31 c.txt
  -rw-r--r-- 1 hy hy 0 Apr 29 22:31 d.txt
  -rw-r--r-- 1 hy hy 0 Apr 29 22:31 e.txt
  -rw-r--r-- 1 hy hy 0 Apr 29 22:31 f.txt
  -rw-r--r-- 1 hy hy 0 Apr 29 22:31 g.txt
  &gt;&gt;&gt;
  </code></pre>
  
  <p>I did that in a directory containing hundreds of files, and intentionally re-size the terminal window very small, it only outputs very few lines which exactly fill the entire window. If I use smaller terminal window, it output even less lines. <strong>Every time it just outputs down to the low boundary of my terminal window.</strong></p>
  
  <p>It's not that python console hides some output when displaying. I tried using subprocess.Popen() to store the output into a pipe and readlines() the pipe, and got the same result.</p>
  
  <p>But it seems python doesn't do that all the time. I don't got this problem on all machines.</p>