refactoring methods that dont need to be methods.  adding _tty_size control
refactoring methods that dont need to be methods.  adding _tty_size control

simudream/sh,pdelong42/sh,jakirkham/sh,rdhyee/sh,achernet/sh,ppannuto/sh,lwgarmstrong/sh,amoffat/sh,twocngdagz/sh,Stupeflix/sh,amoffat/sh,germangh/sh,z-fork/sh,rsmith31415/sh,pombredanne/sh