Created
July 31, 2016 21:31
-
-
Save istepaniuk/061cc0f600d22866c65359285ba73fef to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
REPLY="noputty" | |
echo -e "\005" | |
read -n 5 -t 1 | |
if [ "$REPLY" == "PuTTY" ] ; then | |
echo " :Terminal is PuTTY" | |
TERM=linux | |
echo | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment