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

python - Alternative to referencing variable before assignment -

vb.net - How to ignore if a cell is empty nothing -

javascript - How to bind ViewModel Store to View? -