* tset -I Question on DU4.0B
@ 1998-05-05 22:16 jeffrey.s.horvath
0 siblings, 0 replies; only message in thread
From: jeffrey.s.horvath @ 1998-05-05 22:16 UTC (permalink / raw)
To: tru64-unix-managers
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,
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~1998-05-05 22:16 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1998-05-05 22:16 tset -I Question on DU4.0B jeffrey.s.horvath
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox