Dominique wrote:
> Charles Campbell <[email protected]> wrote: > > > Hello! > > > > Recently, as in the last year or so, I've been getting unwanted escape > > sequences; I've tracked down the issue to a simple operation: > > > > vim -u NONE -U NONE > > :q > > > > and I get left with <esc>>4;m<esc>>4;2m. My system uses linux (Scientific > > Linux 7.9), > > xterm-256color, and terminfo. In using infotmp xterm-256color I do not find > > any > > escape sequences using that format. There are three that are close: > > > > is2=\E[!p\E[?3;4l\E[4l\E> > > rmkx=\E[?1l\E> > > rs2=\E[!p\E[?3;4l\E[4l\E> > > > > (ie. these are the only places in the infocmp output that show \E> > > anywhere). > > > > These unwanted escape sequences are normally just annoying, but they have > > bothered some scripts I've written (bothered = as in caused to fail). > > > > Regards, > > Chip Campbell > > I had the same problem with at least xfce4-terminal or gnome-terminal > in Ubuntu-18.04. Adding this at the beginning of ~/.vimrc works around it: > > " Work around spurious characters in old terminals when doing :!date > set t_TE= t_TI= > > The work around is not needed anymore in Ubuntu-20.04. It's a bug in some terminal implementations, they should ignore the escape sequence but don't. Getting a newer version usually fixes it. If you use "-u NONE" then the vimrc won't be used, but I suppose you were only doing that for testing. -- hundred-and-one symptoms of being an internet addict: 184. You no longer ask prospective dates what their sign is, instead your line is "Hi, what's your URL?" /// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net \\\ /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\ \\\ an exciting new programming language -- http://www.Zimbu.org /// \\\ 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/202011031703.0A3H31YG3810882%40masaka.moolenaar.net.
