Jeremy Armstrong wrote:
> 1. start a vim session with 'vim -u NONE' in xterm (or st) running bash
> 2. start a vim terminal with ':term'
> 3. inside the vim terminal start another vim session with 'vim -u NONE "+set
> nocompatible"
> 4. type <c-z> in the child vim session (do not press any other keys)
> Result: the first character pressed in the vim terminal after stopping the
> child vim session is appended to some junk text. e.g. if you type j then
> ?12;2$yj gets echoed (i.e. the string '?12;2$y' followed by 'j').
>
> The bug is not seen when the child/nested vim session is ':set compatible'.
> If a single key is pressed in the child/nested vim session before <c-z> then
> the bug is not seen.
>
> ======
>
> Vim versions tested: v8.0.1331, v8.0.1297
>
> ======
>
> Tested with Bash under both xterm and st on archlinux
> Linux archlinux 4.13.12-1-ARCH #1 SMP PREEMPT Wed Nov 8 11:54:06 CET 2017
> x86_64 GNU/Linux
> GNU bash, version 4.4.12(1)-release (x86_64-unknown-linux-gnu)
> xterm patch 330
> st 0.7 https://st.suckless.org/
This most likely is the response to what Vim requests the terminal.
Unfortunately, there is no way to separate these responses from typed
characters. If the response arrives after Vim goes to the background
then the sell gets it. I'm not sure if it is possible to avoid this.
--
"So this is it," said Arthur, "we are going to die."
"Yes," said Ford, "except...no! Wait a minute!" He suddenly lunged across
the chamber at something behind Arthur's line of vision. "What's this
switch?" he cried.
"What? Where?" cried Arthur, twisting around.
"No, I was only fooling," said Ford, "we are going to die after all."
-- Douglas Adams, "The Hitchhiker's Guide to the Galaxy"
/// 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].
For more options, visit https://groups.google.com/d/optout.