This has been driving me nuts for at least a year now. When I telnet to a SCO 5
machine and login to an account with ksh as the shell and vi command-line
editing (set -o vi), I type away merrily at the command line, then
backspace/delete what I typed, but I can continue to backspace/delete over my
command line prompt. This happens regardless of my terminal emulator set to ansi
or vt100.
I generally have the following executed when I login:
os=`uname -s`
# Terminal Configuration
if [[ "$os" = SCO* ]] ; then
eval `tset -m scoansi:${TERM:-scoansi} -m :${TERM:-ansi} -r -s -Q`
fi
eval `resize`
stty istrip erase "^h" kill "^u" intr "^c"
# If job control is enabled, set the suspend character to ^Z (control-z):
case $- in
*m*) stty susp '^z'
;;
esac
I noticed that if I "set -o emacs" , there is no problem. If I "set -o vi" ,
press Escape then the "a" key to start typing in text, I am unable to backspace
past the beginning of the command-line. If I backspace over the prompt, then
press Escape, the prompt line is refreshed and displayed correctly.
I have only ever had this happen to me on SCO systems. My current system is SCO
OpenServer(TM) Release 5.
$ uname -a
SCO_SV devsco18 3.2 5.0.5 i386
Any clue as to what is going on here? Is ksh in vi mode broken on SCO? Is there
a fix for this nagging problem?
cheers,
--
Simon McClenahan
Computer Consultant Extraordinaire
BALR Corporation http://www.balr.com
+1(630)575-8200