Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
From: pmurray@miamilink.lib.muohio.edu (Peter Murray)
Subject: Re: keyboard echos incorrect characters
Date: 18 Jul 94 13:19:16 -0500	[thread overview]
Message-ID: <1994Jul18.131917.27181@miavx1> (raw)
In-Reply-To: 30e1bv$4pa@taco.cc.ncsu.edu

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 <sys/ioctl.h>
        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.


Peter



  reply	other threads:[~1994-07-18 18:19 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1994-07-18 13:50 keyboard echos incorrect characters Eric Lease Morgan
1994-07-18 18:19 ` Peter Murray [this message]
1994-07-19 16:33   ` Peter da Silva
1994-07-18 21:01 ` Eric Lease Morgan
1994-07-19 14:59   ` Peter Murray
1994-07-19 14:39     ` Jon Mauney
1994-07-19 16:35     ` Peter da Silva
1994-07-19 16:31 ` Peter da Silva
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox