From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,15250eca16e339f1 X-Google-Attributes: gidfee84,public X-Google-ArrivalTime: 1994-07-18 16:04:30 PST Path: bga.com!news.sprintlink.net!redstone.interpath.net!ddsw1!news.kei.com!yeshua.marcam.com!usc!elroy.jpl.nasa.gov!lll-winken.llnl.gov!taco.cc.ncsu.edu!emorgan.lib.ncsu.edu!eric_morgan From: Eric Lease Morgan Newsgroups: comp.unix.osf.osf1 Subject: Re: keyboard echos incorrect characters Date: 18 Jul 1994 21:01:22 GMT Organization: NCSU Libraries Distribution: world Message-ID: <30eqj2$c6i@taco.cc.ncsu.edu> References: <30e1bv$4pa@taco.cc.ncsu.edu> NNTP-Posting-Host: emorgan.lib.ncsu.edu X-UserAgent: Nuntius v1.1.1d12 X-XXMessage-ID: X-XXDate: Mon, 18 Jul 94 17:05:33 GMT In article <1994Jul18.131917.27181@miavx1> Peter Murray, pmurray@miamilink.lib.muohio.edu writes: >Eric Lease Morgan (eric_morgan@ncsu.edu) wrote: >: Can anybody give me a clue as to why my keyboard echoes: > >: * ^[[A for up arrow, >: * ^[[B for down arrow, >: * ^[[C for right arrow, and >: * ^[[D for left arrow. > >: Similarly, all my terminal-type appplications like swais, gopher, and >: lynx do not respond to my keyboard commands properly. > >Do a `stty`. If you see "speed 0 baud" in the first line, type `stty 9600`. > >Or, as part of a C program: > > #include > struct sgttyb sgttyb; > (void)ioctl(0, TIOCGETP, &sgttyb); > sgttyb.sg_flags |= B9600; > (void)ioctl(0, TIOCSETP, &sgttyb); > > >It is a bug somewhere, but I don't know enough about OSF/1 internals to >guess where. I just know that the above solution solves a lot of problems, >including the ones you've mentioned. This solution works for me, and I suppose I can edit my .login or .cshrc file to automatically configure this when I log in. But what happened to my "remember last command" feature, the feature that echoed my last few commands when I pressed the up and down arrow keys? Eric Lease Morgan NCSU Libraries