linux - Is there a way to detect the terminal program that someone is using in bash -


i'm trying make bash script behaves differently based on terminal program using (putty, mobaxterm, etc). there way retrieve kind of information bash script?

i searching around online not able find (or i'm wording incorrectly, distinct possibility).

thank you

you need understand these terminal emulators. there simple, crude identification function (most?) modern line terminals (now that's oxymoron!) return vt102 or xterm i.e. whatever emulator emulating; not identity of program performing emulation. incidentally, used when session initiated, , reflected in value of $term environment variable.


Comments

Popular posts from this blog

resizing Telegram inline keyboard -

command line - How can a Python program background itself? -

php - "cURL error 28: Resolving timed out" on Wordpress on Azure App Service on Linux -