Emacs switching out of terminal
In terminal mode you have to use C-c o
to switch to the other buffer. C-c
is the "terminal escape character"
http://www.gnu.org/s/libtool/manual/emacs/Terminal-emulator.html
With the assumption that you are using a Linux distro:
Ctrl + d
to terminate the Terminal Emulator processC-c k
thenENTER
to kill the associated buffer