GNU Screen

GNU Screen is like a window manager for terminals. It's also possible to "detach" a screen to keep programs running while you're not logged in.

See Screen Howto.

Official website: http://www.gnu.org/software/screen/

Screen alternative: tmux