Re: probe and set terminal type when shell is spawned

2006-09-07 Thread Carlo Florendo
Igor Peshansky wrote: On Fri, 8 Sep 2006, Carlo Florendo wrote: Hello, Is it possible for me to automatically set the TERM variable in bash depending on the type of my terminal. For example, these are the things I want to accomplish: 1. If I ssh into the cygwin box from an xterm on a Lin

Re: probe and set terminal type when shell is spawned

2006-09-07 Thread Igor Peshansky
On Fri, 8 Sep 2006, Carlo Florendo wrote: > Hello, > > Is it possible for me to automatically set the TERM variable in bash > depending on the type of my terminal. > > For example, these are the things I want to accomplish: > > 1. If I ssh into the cygwin box from an xterm on a Linux box, I would

probe and set terminal type when shell is spawned

2006-09-07 Thread Carlo Florendo
Hello, Is it possible for me to automatically set the TERM variable in bash depending on the type of my terminal. For example, these are the things I want to accomplish: 1. If I ssh into the cygwin box from an xterm on a Linux box, I would like TERM=xterm-color. 2. If I simply spawn a DOS