On 2022-10-08, Bram Moolenaar wrote: > 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.
That sounds reasonable. I just tried it in the two oldest gvims I have lying around and they behaved the same. I seldom use :sh in gvim, and then just for quick checks, so a dumb terminal is fine. Regards, Gary -- -- 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/20221008215508.GH24999%40phoenix.
