* keyboard echos incorrect characters
@ 1994-07-18 13:50 Eric Lease Morgan
1994-07-18 18:19 ` Peter Murray
` (2 more replies)
0 siblings, 3 replies; 8+ messages in thread
From: Eric Lease Morgan @ 1994-07-18 13:50 UTC (permalink / raw)
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.
I assume I am suppose to configure something, or I am suppose to be
emulating something, but my csh env command reports I am emulating a
vt100 terminal.
Eric "In A Quandry, And Missing My 'Previous Commands' Feature" Morgan
NCSU Libraries
^ permalink raw reply [flat|nested] 8+ messages in thread* Re: keyboard echos incorrect characters
1994-07-18 13:50 keyboard echos incorrect characters Eric Lease Morgan
@ 1994-07-18 18:19 ` Peter Murray
1994-07-19 16:33 ` Peter da Silva
1994-07-18 21:01 ` Eric Lease Morgan
1994-07-19 16:31 ` Peter da Silva
2 siblings, 1 reply; 8+ messages in thread
From: Peter Murray @ 1994-07-18 18:19 UTC (permalink / raw)
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
^ permalink raw reply [flat|nested] 8+ messages in thread* Re: keyboard echos incorrect characters
1994-07-18 18:19 ` Peter Murray
@ 1994-07-19 16:33 ` Peter da Silva
0 siblings, 0 replies; 8+ messages in thread
From: Peter da Silva @ 1994-07-19 16:33 UTC (permalink / raw)
In article <1994Jul18.131917.27181@miavx1>,
Peter Murray <pmurray@miamilink.lib.muohio.edu> wrote:
> Do a `stty`. If you see "speed 0 baud" in the first line, type `stty 9600`.
Gyaaaah! A bug in terminfo. It must be using the speed setting to calculate
timeout values.
--
Peter da Silva `-_-'
Network Management Technology Incorporated 'U`
1601 Industrial Blvd. Sugar Land, TX 77478 USA
+1 713 274 5180 "Hast Du heute schon Deinen Wolf umarmt?"
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: keyboard echos incorrect characters
1994-07-18 13:50 keyboard echos incorrect characters Eric Lease Morgan
1994-07-18 18:19 ` Peter Murray
@ 1994-07-18 21:01 ` Eric Lease Morgan
1994-07-19 14:59 ` Peter Murray
1994-07-19 16:31 ` Peter da Silva
2 siblings, 1 reply; 8+ messages in thread
From: Eric Lease Morgan @ 1994-07-18 21:01 UTC (permalink / raw)
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 <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.
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
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: keyboard echos incorrect characters
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
0 siblings, 2 replies; 8+ messages in thread
From: Peter Murray @ 1994-07-19 14:59 UTC (permalink / raw)
Eric Lease Morgan (eric_morgan@ncsu.edu) wrote:
: 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?
That is a bother, and the inability to do command-line editing in OSF/1's
'csh' (eg, the ":v" modifier) is also a pain. Can't help with those
questions, though. Maybe some other kind soul will volunteer a suggestion.
Peter
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: keyboard echos incorrect characters
1994-07-19 14:59 ` Peter Murray
@ 1994-07-19 14:39 ` Jon Mauney
1994-07-19 16:35 ` Peter da Silva
1 sibling, 0 replies; 8+ messages in thread
From: Jon Mauney @ 1994-07-19 14:39 UTC (permalink / raw)
pmurray@miamilink.lib.muohio.edu (Peter Murray) writes:
>That is a bother, and the inability to do command-line editing in OSF/1's
>'csh' (eg, the ":v" modifier) is also a pain. Can't help with those
>questions, though. Maybe some other kind soul will volunteer a suggestion.
THe problems with command editing in csh on OSF/1 are:
a) It's not quite the same as Ultrix
b) Its description is stupidly placed in the man page "cmdedit"
and not well pointed to in the csh man page.
But command-line editing is available. See "cmdedit" for details.
--
Jon Mauney mauney@csc.ncsu.edu
Mauney Computer Consulting (919) 828-8053
"Have TGT, will travel."
^ permalink raw reply [flat|nested] 8+ messages in thread* Re: keyboard echos incorrect characters
1994-07-19 14:59 ` Peter Murray
1994-07-19 14:39 ` Jon Mauney
@ 1994-07-19 16:35 ` Peter da Silva
1 sibling, 0 replies; 8+ messages in thread
From: Peter da Silva @ 1994-07-19 16:35 UTC (permalink / raw)
In article <1994Jul19.095900.27210@miavx1>,
Peter Murray <pmurray@miamilink.lib.muohio.edu> wrote:
> That is a bother, and the inability to do command-line editing in OSF/1's
> 'csh' (eg, the ":v" modifier) is also a pain. Can't help with those
> questions, though. Maybe some other kind soul will volunteer a suggestion.
Grab tcsh off the OSF Freeware CDROM.
--
Peter da Silva `-_-'
Network Management Technology Incorporated 'U`
1601 Industrial Blvd. Sugar Land, TX 77478 USA
+1 713 274 5180 "Hast Du heute schon Deinen Wolf umarmt?"
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: keyboard echos incorrect characters
1994-07-18 13:50 keyboard echos incorrect characters Eric Lease Morgan
1994-07-18 18:19 ` Peter Murray
1994-07-18 21:01 ` Eric Lease Morgan
@ 1994-07-19 16:31 ` Peter da Silva
2 siblings, 0 replies; 8+ messages in thread
From: Peter da Silva @ 1994-07-19 16:31 UTC (permalink / raw)
In article <30e1bv$4pa@taco.cc.ncsu.edu>,
Eric Lease Morgan <eric_morgan@ncsu.edu> wrote:
> * ^[[A for up arrow,
> * ^[[B for down arrow,
> * ^[[C for right arrow, and
> * ^[[D for left arrow.
Those are correct.
> Similarly, all my terminal-type appplications like swais, gopher, and
> lynx do not respond to my keyboard commands properly.
Betcha you've got a termcap or terminfo definition for your terminal type
that's expecting ^[OA instead of ^[[A.
--
Peter da Silva `-_-'
Network Management Technology Incorporated 'U`
1601 Industrial Blvd. Sugar Land, TX 77478 USA
+1 713 274 5180 "Hast Du heute schon Deinen Wolf umarmt?"
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~1994-07-19 16:35 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1994-07-18 13:50 keyboard echos incorrect characters Eric Lease Morgan
1994-07-18 18:19 ` Peter Murray
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
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox