On Fri, 20 Jul 2007, Chris Mason wrote: > Hi, > > I know I am doing something wrong as opposed to a problem with OpenBSD, but I > can't get the stty command working correctly. > I have searched on Google but I am unable to find any reference to it not > working.. everyone suggests this method. > On any other system I can do "stty -echo" to turn the terminal echo off, but > on OpenBSD 4.0/4.1 it doesn't have any affect: > > mail:/root# stty -echo > mail:/root# stty -e > speed 38400 baud; 24 rows; 80 columns; > lflags: icanon isig iexten -echo echoe -echok echoke -echonl echoctl > -echoprt -altwerase -noflsh -tostop -flusho pendin -nokerninfo > -extproc -xcase > iflags: -istrip icrnl -inlcr -igncr -iuclc ixon -ixoff ixany imaxbel > -ignbrk brkint -inpck -ignpar -parmrk > oflags: opost onlcr -ocrnl -onocr -onlret -olcuc oxtabs -onoeot > cflags: cread cs8 -parenb -parodd hupcl -clocal -cstopb -crtscts -mdmbuf > discard dsusp eof eol eol2 erase intr kill lnext > ^O ^Y ^D <undef> <undef> ^? ^C ^U ^V > min quit reprint start status stop susp time werase > 1 ^\ ^R ^Q <undef> ^S ^Z 0 ^W > > Does anyone have any idea what I am doing wrong?
in interactive editing mode, ksh itself echos the chars. Try this: set +o emacs stty -echo Note that applies only to command line mode, if a script interacts with the terminal, it will work as expected. -Otto