Gary Johnson wrote:
> > > > I seldom use gvim on Linux and even less often use :sh from gvim, so
> > > > I didn't notice this until recently when projects and my workflow
> > > > changed.
> > > >
> > > > When :sh is used in gvim to launch a shell, the backspace and ^U no
> > > > longer work. Instead of backspacing or clearing the line, each just
> > > > puts gibberish in the line. I discovered that each was broken by
> > > > a different commit, so I'm reporting them separately.
>
> [...]
>
> > I still wonder why it took so long for someone to uncover this problem.
> > And what other things might still be wrong...
>
> Well, the arrow keys are kinda funky, too. Executing :sh and
> pressing the up-arrow, then Enter produces this, where the boxes are
> on one line and two characters wide.
>
> $ |00| |00| |00| k
> |9B| |9B| |9B|
> \udc9bku: command not found
>
> I tried looking at the arrow-key keycodes in gvim, but whether
> I prefixed the key with ^V or ^K, all I got was the key name, e.g.,
> <Up>.
>
> The other arrow keys behave similarly. The characters on the
> command line look the same, but the last letter of the command that
> bash sees are different.
>
> Key Command
> ----------- --------
> up-arrow \udc9bku
> down-arrow \udc9bkd
> left-arrow \udc9bkl
> right-arrow \udc9bkr
>
> The shifted arrow keys give similar results but also appear
> differently on the command line.
I believe it has always been like this. The $TERM in the shell is set
to "dumb", which means it doesn't support any special keys.
There have been ideas to simulate a more clever terminal, perhaps vt52.
But using a terminal window is a much better alternative.
--
PRINCE: He's come to rescue me, father.
LAUNCELOT: (embarrassed) Well, let's not jump to conclusions ...
"Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD
/// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net \\\
/// \\\
\\\ sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ ///
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
--
--
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/vim_dev/20221008212958.121241C0D0A%40moolenaar.net.