foot version: 1.17.2 +pgo +ime +graphemes -assertions +ucurl
TERM environment variable
foot
Compositor Version
sway version 1.9
Description of Bug and Steps to Reproduce
I have been trying to track down the source of this bug for quite some time. When using foot to run vim (latest version compiled from source) specifically via sudoedit or sudo -e where EDITOR=vim, sometimes Vim receives erroneous inputs immediately upon launching the program. Specifically, it appears to execute a 'normal mode paste' ("P") and inserts a number in the first position of the second line of the file (at the very least).
This issue does not occur every time sudoedit is used and I cannot reproduce when running via strace (which inadvertently introduces delay to Vim's startup). It only occurs with foot and not when using tmux (tested on alacritty as well).
This sequence in particular...
^[[?12l^[[?25h^[[2;1H▽^[[6n^[[2;1H ^[[3;1H^[Pzz^[\^[[0%m^[[6n^[[3;1H
... appears early in Vim's initialization, and I hasten to wonder whether it could be related/misinterpreted based on the environment.
I am not terribly familiar with how foot works, but perhaps this may assist someone in discovering why this may occur. I'm using the terminfo foot provides. I'll continue to try and uncover where this bug is coming from, but I first noticed it many months ago and I'm sure it has remained between versions of foot. Various forms of debugging haven't revealed much as there is no 'error,' but unpredictable behavior due to some confounding variable when using sudo -e.
Relevant logs, stacktraces, etc.
No response
### Foot Version
foot version: 1.17.2 +pgo +ime +graphemes -assertions +ucurl
### TERM environment variable
foot
### Compositor Version
sway version 1.9
### Description of Bug and Steps to Reproduce
I have been trying to track down the source of this bug for quite some time. When using foot to run `vim` (latest version compiled from source) _specifically_ via `sudoedit` or `sudo -e` where `EDITOR=vim`, _**sometimes**_ Vim receives erroneous inputs immediately upon launching the program. Specifically, it appears to execute a 'normal mode paste' ("P") and inserts a number in the first position of the second line of the file (at the very least).
This issue does not occur every time sudoedit is used and I cannot reproduce when running via `strace` (which inadvertently introduces delay to Vim's startup). It only occurs with foot and not when using tmux (tested on alacritty as well).
This sequence in particular...
```^[[?12l^[[?25h^[[2;1H▽^[[6n^[[2;1H ^[[3;1H^[Pzz^[\^[[0%m^[[6n^[[3;1H```
... appears early in Vim's initialization, and I hasten to wonder whether it could be related/misinterpreted based on the environment.
I am not terribly familiar with how foot works, but perhaps this may assist someone in discovering why this may occur. I'm using the terminfo foot provides. I'll continue to try and uncover where this bug is coming from, but I first noticed it many months ago and I'm sure it has remained between versions of foot. Various forms of debugging haven't revealed much as there is no 'error,' but unpredictable behavior due to some confounding variable when using `sudo -e`.
### Relevant logs, stacktraces, etc.
_No response_