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
Post a Comment