Here's a shorter blogpost about a useful command line utility I feel some people might not know about. In some programs, like w3m or Emacs, there's an option to suspend. In emacs this is done with C-x C-z. Then, you can resume Emacs by running
fgin bash.