Steps to reproduce
Run this shell command:
vim -Nu NONE -S <(cat <<'EOF'
vim9script
var bufnr: number = term_start(&shell, {hidden: true})
execute 'buffer ' .. bufnr
popup_create(bufnr, {
line: &lines / 2,
minwidth: &columns / 2,
border: [],
})
term_sendkeys(bufnr, "echo 'test'")
EOF
)
echo 'test'
is printed on the shell command-line.
Expected behavior
Nothing is printed on the shell command-line.
Version of Vim
8.2 Included patches: 1-3793
Environment
Operating system: Ubuntu 20.04.3 LTS
Terminal: xterm
Value of $TERM: xterm-256color
Shell: zsh 5.8
Screenshot
Additional Context
The issue does not seem to be caused by the shell. I can still reproduce when replacing &shell
with /usr/bin/bash --norc --noprofile
:
vim9script var bufnr: number = term_start('/usr/bin/bash --norc --noprofile', {hidden: true}) execute 'buffer ' .. bufnr popup_create(bufnr, { line: &lines / 2, minwidth: &columns / 2, border: [], }) term_sendkeys(bufnr, "echo 'test'")
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub.
Triage notifications on the go with GitHub Mobile for iOS or Android.
Nothing is printed on the shell command-line.
I meant: nothing is printed on the shell command-line of the terminal buffer which is displayed in the popup window. No such issue in the regular window.
Sorry for the original issue title which was wrong. I had to edit it twice.