Gnu screen support

thanks to saitoha https://gist.github.com/saitoha/7546579