ps: don't query for terminal size if not a tty.

`ps -A | cat` shouldn't have different output depending on the size of
your terminal window.

(cherry picked from commit af39a2c46a6f899d298f63a270e8fd2338904ad3)

Change-Id: Ib75abd694e49f340511aa63c601d144abe00837d
1 file changed