From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <96078708811384.tru64-unix-managers.marc@archive.invalid> From: jeffrey.s.horvath () ccmail ! census ! gov Date: Tue, 05 May 1998 22:16:26 +0000 To: tru64-unix-managers Subject: tset -I Question on DU4.0B X-MARC-Message: https://marc.info/?l=tru64-unix-managers&m=96078708811384 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,