On 2001.09.06, in <[EMAIL PROTECTED]>,
        "Denis Perelyubskiy" <[EMAIL PROTECTED]> wrote:
> 
> also, neither do i know if this is an *official* bash way,
> but things like these work in my startup files, even though
> maybe they disgust people who really know bash :)

What bothers me about this approach, in general, is that it's not
supposed to depend on your shell -- you're not supposed to need to make
tests and reset $TERM accordingly at all. The point of terminfo/termcap
and the $TERM variable is that the terminal emulator application should
tell the shell what terminal it's emulating by means of $TERM, and
everything should work.

If it doesn't, then something is wrong with your terminfo library or
your termcap file, or your terminal emulator is lying.
needs new options or resources.


That said, I occasionally change my $TERM from xterm to something I
like, just to get rid of the alternate (application-mode?) screen
setting. But there are better ways of doing this (xterm -ti vt100, or
modifying a private copy in $TERMINFO); I'm just lazy.

I suspect that there's always a better approach than shell-rc case
switching. If not, then your terminal emulator needs new options or
resources.

-- 
 -D.    [EMAIL PROTECTED]        NSIT    University of Chicago

Reply via email to