This works as expected for 99% of applications.
Or you could say that it fails for 1% ....
I was that 1% for a long time without any indication of what was wrong, and its a very un-googleable problem. I even bugged the Console2 development folks, they had no answer for me as everything "looked" sane in the environment and console startup.
I was even having it happen when running:
php -i | less
Since then, I've switched over to using a shared set of dotfiles, in which I'm sure one of my settings has "fixed" the problem. But, do know I have experienced this. Having to kill a windows b/c my control inputs no longer are responding was highly annoying for a few months.
-ralph