python3 messes up terminal python3 messes up terminal python-3.x python-3.x

python3 messes up terminal


Yep, I see this problem too using python3.5 on Mac OS X 10.10.

This seems to be a bug with the python3 interactive shell - it disables echo for your terminal and does not enable it when you exit(). To fix your terminal, run this command at the bash prompt.

stty echo

Credit goes to this post.

UPDATE:
This bug is tracked here: https://trac.macports.org/ticket/48807
The permanent fix is to install the port py35-readline.

sudo port install py35-readline


To fix your terminal, run this command at the bash prompt

stty sane

Credit goes to this post