Skip to content

Instantly share code, notes, and snippets.

@istepaniuk
Created July 31, 2016 21:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save istepaniuk/061cc0f600d22866c65359285ba73fef to your computer and use it in GitHub Desktop.
Save istepaniuk/061cc0f600d22866c65359285ba73fef to your computer and use it in GitHub Desktop.
#!/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