tru64-unix-managers (formerly alpha-osf-managers) (1994-2012)
 help / color / mirror / Atom feed
From: jeffrey.s.horvath () ccmail ! census ! gov
To: tru64-unix-managers
Subject: tset -I Question on DU4.0B
Date: Tue, 05 May 1998 22:16:26 +0000	[thread overview]
Message-ID: <96078708811384.tru64-unix-managers.marc@archive.invalid> (raw)


     The following code is part of my .profile script.  I'm on DU4.0B using
     ksh and would like to set my erase key to either Delete or Backspace. 
     The erase key changes for different terminal emulators and is either 
     one or the other.   
     
     However, this code DOESN'T work because I'm unable to redirect output 
     with the "test -I" command.
     
     Does anyone know why or different way to identify the erase character 
     and then set it?  
     
      
     
     
     temp=$(tset -I |awk 'NR==1 {print $3}')
     #Following will set erase for both terminal types
     print "temp is $temp"
     if [[ $temp = "Delete" ]]; then
     print "Setting stty"
        stty erase ^H
     else
        stty erase ^?
     fi
     
     
     Thanks,

                 reply	other threads:[~1998-05-05 22:16 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox