i<cr>
Hello world<escape>
entered into a file, switches case on the final letter,
thusly:
Hello worlD
which is rather annoying whilst editing code or documents
or whatever.
Anyone know what, if any, fix will get around this problem?
Thanks
Bob Keys
(machine is Alpha 3000 M700 with pmagb-ba on NetBSD-1.6U)
(everything else seems to run fine)
> Hello worlD
I suspect that the escape key is sending some multi-character sequence
involving a tilde. Try ktracing vi so you can see exactly what it's
reading from the tty.
_Fixing_ it is another story entirely, of course. I have no
suggestions for that, though I hope the above will at least get you
looking in the right place.
/~\ The ASCII der Mouse
\ / Ribbon Campaign
X Against HTML mo...@rodents.montreal.qc.ca
/ \ Email! 7D C8 61 52 5D E7 2D 39 4E F1 31 3E E8 B3 27 4B
Try setting the vi option 'escapetime' to > 1 (in units of 100ms) - I
wouldn't normally expect anyone to need this on a local xterm, but it
might help determine whether the problem is vi misinterpreting escape
sequences or something else.
--
David Maxwell, da...@vex.net|da...@maxwell.net --> Although some of you out
there might find a microwave oven controlled by a Unix system an attractive
idea, controlling a microwave oven is easily accomplished with the smallest
of microcontrollers. - Russ Hersch - (Microcontroller primer and FAQ)
> i<cr>
> Hello world<escape>
>
>entered into a file, switches case on the final letter,
>thusly:
>
> Hello worlD
Are you sure that you're not pressing F1?
--
Roland Dowdeswell http://www.Imrryr.ORG/~elric/
No, I am not pressing f1 by misteak.....(:+}}...
Thanks
Bob
I also noticed that in command mode, just moving a cursor around
and pressing escape at any cursor position flipped the case on the
character wherever the cursor was placed.
Baaaaad karma....(:+\\.....
For now, the only fix seems to edit in vi outside X on this alpha.
Also, the same thing happened using vim.
It does not happen on any of my Sun boxes. Whatever is
doing it may be alpha specific or dec specific.
Vague memory seems to suggest that I saw this happen one
time before, but I am unable to recall on what, exactly. Does this
happen on a pmax box?
Oh, well, that is all I can ferret out, for now....
Thanks
Bob Keys
i<cr>
Hello world<cr>
<escape>
Seems like the simplest solution to me.
But I can't seem to reproduce the original problem.
carl
--
carl lowenstein marine physical lab u.c. san diego
clow...@ucsd.edu
Keyboard setup. Your F11 key is not mapped to <esc> but to some
other combination which includes ~ and also <esc>/
> For now, the only fix seems to edit in vi outside X on this alpha.
>
> Also, the same thing happened using vim.
>
> It does not happen on any of my Sun boxes. Whatever is
> doing it may be alpha specific or dec specific.
>
> Vague memory seems to suggest that I saw this happen one
> time before, but I am unable to recall on what, exactly. Does this
> happen on a pmax box?
What happens in an xterm window from from a shell prompt if you run "od -cb"
I try here, with input: <esc>,x,x,<ctrl>[,x,x,<cr>,<ctrl>d
(commas just to show separate characters, not to be typed)
[cdl@iota cdl]$ od -cb
^[xx^[xx
0000000 033 x x 033 x x \n
033 170 170 033 170 170 012
0000007
[cdl@iota cdl]$
carl
--
carl lowenstein marine physical lab u.c. san diego
clow...@ucsd.edu
$
> No, I am not pressing f1 by misteak.....(:+}}...
CTRL-3 should be equivalent to ESC too.
What do you get with xev(1)?
--
tschüß,
Jochen
Homepage: http://www.unixag-kl.fh-kl.de/~jkunz
If the ctrl-[ works and not the f11, in X, then something
is not passing the codes correctly to vi, while in X?
Bob Keys
Bob Keys
It appears that your F11 is not, after all, the Escape you thought it
was. If you've meddled with the xmodmap settings for keycode 35, this
is probably your fault; if not, it's the X server's fault (if fault it
truly is).
> If the ctrl-[ works and not the f11, in X, then something is not
> passing the codes correctly to vi, while in X?
FSVO "correctly", yes. If F11 is the key people expect to press for
escape, then keycode 35 should have Escape as its keysym, not F11. Why
this is not so is the question.
As a workaround, you can use xmodmap to put Escape, instead of F11, on
keycode 35. But you really shouldn't have to do that.
Thanks
Bob Keys
If od-cb gives <ctrl>[ [ 2 3 ~ for <F11>
which it does on my Solaris system and also a Linux system,
and also on your NetBSD VAX, the problem is not limited to vi.
It seems to be part of X, whatever translates keycodes into
ASCII equivalents. This is further inside X than I want to go
today. :-)
But it looks like VT220 keycode translation is being done,
while you want VT100.
carl