eric@utai.UUCP (Eric Yu) (01/27/88)
On the VT-100, the cursor (arrow) keys produce ESC [ followed by one of A, B, C, or D. The shifted PF keys produce ESC O and A, B, C, or D. Gosling Emacs seems to respect this convention. But in GNU Emacs, both sets of keys produce the ESC O prefix, to the effect that those keys are no longer distinguishable. Can someone tell me how to get back the ESC [ prefix for the arrow keys? Thanks. -- Eric Yu (416) 978-6027 Department of Computer Science eric@ai.toronto.edu (CSnet,UUCP,Bitnet) University of Toronto eric@ai.toronto.cdn (EAN X.400) Toronto, Canada M5S 1A7 {seismo,watmath}!ai.toronto.edu!eric
rustcat@russell.STANFORD.EDU (Vallury Prabhakar) (01/28/88)
In article <4228@utai.UUCP> eric@ai.toronto.edu (Eric Yu) writes:
+->
+-> On the VT-100, the cursor (arrow) keys produce ESC [ followed by
+-> one of A, B, C, or D.
+->
+-> The shifted PF keys produce ESC O and A, B, C, or D.
+->
+-> Gosling Emacs seems to respect this convention.
+-> But in GNU Emacs, both sets of keys produce the ESC O prefix,
+-> to the effect that those keys are no longer distinguishable.
+->
I don't know if this helps, but one of the problems I had when using my
PC as a vt100 emulator for a Unix mainframe was:
I tried binding the keys on the numeric keypad to some obvious
cursor functions. It didn't work at first. Well, not completely.
For example, the up-arrow would move the cursor to the previous line,
BUT along with that some other characters would get inserted.
I fixed this problem, by using the NUM-LOCK key in conjunction with
the numeric keypad. That works fine.
^[Ox = NUM-LOCK + UP-ARROW
^[[A = UP-ARROW (sans NUM-LOCK) => The A would get inserted.
-- Vallury Prabhakar
--
[I have doubts about the above reply path.
Please use `rustcat@russell.stanford.edu'.]