[SunHELP] stty erase

Ousmanov (Zarif) sunhelp at sunhelp.org
Wed Mar 28 13:50:42 CST 2001


Thanks to everyone for discussing the issue.
I particularly liked the idea with aliases.
I thinks it's really cleaver and let me not to do any hard coding.

thanks a lot,
zarif



----- Original Message -----
From: "William W. Arnold" <warnold at vipnet.org>
To: <sunhelp at sunhelp.org>
Sent: Wednesday, March 28, 2001 10:00 AM
Subject: Re: [SunHELP] stty erase


> >>| Is there any way to determine a type of a machine I'm coming from (to
put
> >>| some "if - else" statement into .profile)?
> >>| Or is there better solution?
>
> You can parse the output of who.
> (tcsh example from my .login)
> else if (`who am i | perl -ne 'print("ppp") if /ppp.richmond.edu/;'` ==
"ppp") then
>         set term=vt102
> endif
>
> Or you can do what I find more generally usefull:
> (also tcsh example from my .cshrc)
> alias ^H 'stty erase ^H'
> alias ^? 'stty erase ^?'
>
> And then you just hit your backspace/delete key and return as the
> first thing you do when you login.  After a while it becomes so
> automatic you don't realize your doing it.
> I'm sure there's a equivalent bash thing.
>
> --
> -billy- warnold at erols.com warnold at vipnet.org
> _______________________________________________
> SunHELP maillist  -  SunHELP at sunhelp.org
> http://www.sunhelp.org/mailman/listinfo/sunhelp
>




More information about the SunHELP mailing list