Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

When using vim/vi, ESC[?4m will be automatically added to the screen #1814

Closed
amaoo opened this issue Aug 9, 2023 · 11 comments
Closed

When using vim/vi, ESC[?4m will be automatically added to the screen #1814

amaoo opened this issue Aug 9, 2023 · 11 comments
Assignees
Labels
bug Something isn't working duplicate This issue or pull request already exists

Comments

@amaoo
Copy link

amaoo commented Aug 9, 2023

When using vim/vi,' ESC[?4m' will be automatically added to the screen, and it will disappear automatically when saving or exiting.

image image
@amaoo amaoo closed this as completed Aug 9, 2023
@amaoo amaoo closed this as not planned Won't fix, can't repro, duplicate, stale Dec 14, 2023
@jeffcao
Copy link

jeffcao commented Jan 9, 2024

hello, i have the same problem.
how to solve it? thanks.

@amaoo
Copy link
Author

amaoo commented Jan 9, 2024

@jeffcao
Write these into .vimrc:

set keyprotocol=
let &term=&term

@jeffcao
Copy link

jeffcao commented Jan 9, 2024

@jeffcao Write these into .vimrc:

set keyprotocol=
let &term=&term

I did. but when i run cmd 'vi aa.txt' , below error msg show:

Error detected while processing /usr/share/vim/vimrc[53]../etc/vim/vimrc.local:
line    1:
E518: Unknown option: keyprotocol=
Press ENTER or type command to continue

@amaoo
Copy link
Author

amaoo commented Jan 9, 2024

@jeffcao

vi ~/.vimrc
It doesn't matter if .vimrc doesn't exist.

or use this

echo 'set keyprotocol=' >> ~/.vimrc
echo 'let &term=&term' >> ~/.vimrc

@jeffcao
Copy link

jeffcao commented Jan 9, 2024

image
@amaoo Thank your replay, but still does't work. see above pic.

@amaoo
Copy link
Author

amaoo commented Jan 9, 2024

@jeffcao
This is what I refer to.
#1623 (comment)

I tried again, and there was no such problem. What's your version of vim?

@jeffcao
Copy link

jeffcao commented Jan 9, 2024

@jeffcao This is what I refer to. #1623 (comment)

I tried again, and there was no such problem. What's your version of vim?

yes, i have noticed that my vim version caused the problem. my vim version is 8.2.2121.

@amaoo
Copy link
Author

amaoo commented Jan 9, 2024

Then can you try vim9?

@jeffcao
Copy link

jeffcao commented Jan 9, 2024

Then can you try vim9?

yes, i have installed vim 9.1.16 from github source. but, the "unkonwn option: keyprotocol=" error still is there.

@jeffcao
Copy link

jeffcao commented Jan 9, 2024

vim/vim#11728
The above link is the closed issure of vim. so i am trying to do some things about it.

@kingToolbox kingToolbox self-assigned this Jan 12, 2025
@kingToolbox kingToolbox added bug Something isn't working duplicate This issue or pull request already exists labels Jan 12, 2025
@kingToolbox
Copy link
Owner

Duplicate of #1623

The ESC [?4m control sequence (XTQMODKEYS , Query key modifier options) was introduced in vim 9.0. WindTerm 2.7.0 Prerelease 2 now supports parsing ESC [?4m. Please download and try it. Thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working duplicate This issue or pull request already exists
Projects
None yet
Development

No branches or pull requests

3 participants