support other terminal multiplexer and any programs

Besides the screen,there are terminal multiplexer, such as tmux and byobu.

this commit provide support for other programs