Open moyiz opened 7 years ago
It looks related to the \033[?1049h
escape sequence vim sends to save screen content and cursor position, and \033[?1049l
used to restore screen and cursor position.
I can reproduce the issue with this in dvtm:
ls -a
printf '\033[?1049h'
pwd
printf '\033[?1049l'
May be related to vt.c#L968.
I'm not sure how to describe this issue properly so I've attached some screenshots. I start with a some what clean 3 window setup:
Then, I run some commands so the prompt will be lower in the window, and launch vim:
When I exit vim, the prompt returns to the top of the window, as you can see in the following screenshots (the cursor blinks on the 'l' of the 'locate' command). The desired behavior is for it to return at the same location where a CLI program was called.
After pressing some 'Enter's you can see that the prompt overrides outputs from previous commands.
I'm using mate-terminal + abduco + dvtm. I tried to mess a bit with DVTM_TERM / TERM, and tried using xterm instead of mate-terminal, but I get the same result. To be honest, I am not sure what causing it or even if it is a dvtm issue.
Thanks. (Edit: Fixed a typo) (Update: Solved by setting TERM as 'rxvt-256color' in bashrc, not sure why though)