-
Notifications
You must be signed in to change notification settings - Fork 8.2k
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
windows terminal will send one more character when use vim view mode to select characters send to repl #9530
Comments
OK a lot of things are missing. What repl are you using? Are you using PowerShell? Are you using WSL? You can't expect us to help you with almost no useful information. |
i use vim-repl vim-repl, Nvim-R , both of them in windows terminal will send one more character in WSL vim environment. but when i use vim-repl or Nvim-R in xshell or linux system's terminal ,they are working fine and won't send one more character. |
Can you attach a screenshot of something to illustrate this issue? Also, what is the terminal version you are using? And the Windows version? |
Yeah there's probably a lot of hidden problems in Windows Terminal and we all want to solve them. We'd love to hear feedbacks from the community. Just we need like a lot of information to determine what exactly the problem is and possibly find a way to fix it. So please be sure to provide as much as information as you can when you submit issues on Github. |
i only select the 'a' in vim view mode ,but it sent the 'a=' in windows terminal preview 1.7.572.0 in windows 10 1909 for a long time of all version windows terminal i have used, but it will be ok in Xshell or linux terminal's vim . |
OK I've tried the plugin (nice plugin, btw) but I can't repro this locally. I'm using WSL2 (Ubuntu 20.04) and Vim 8.1. Are you using WSL2? |
i use the WSL1(Ubuntu20.04), but when i use windows terminal's cmd or wsl to connect the linux sever by ssh , it also will send one more character in vim view select mode. |
i meet this problem in cmd , wsl of cmder's terminal or windows terminal. but in xshell or linux system's terminal, it work ok. |
it will always send one more character and will report error unless there is a space after it in windows terminal, |
How do you select If keyboard, what do you press? Please help me reproduce this issue 😄 |
i sleep last night when you reply me . now ,i just wake up. i use the keyboarkd and do not use the mouse in vim. |
yeah, the method is just like what you said, in windows terminal, if you select 'a', it will send 'a=' because it will send one more character in windows terminal, but in xshell, it will only send 'a', so, it can work well in Xshell. |
How about just do not press Seems to me entering visual mode will automatically select "a". |
i just never press 'l' to select the right side character '=', i only select the 'a' character in the vim visual mode ,but it will send 'a=' in windows terminal, |
So you're saying if you repeat what I did, just press |
i repeat it, in windows terminal's vim , if you just press
|
OK, now I see. Listen to me very carefully:
when you press
How do select |
i think you do not know it , if i select it is so terrible that if i want to send if you use the windows system ,i hope you can use xshell to run it , it works very well . in windows terminal ,it was really terrible and unfriendly, that you only can select |
Do you know Xshell in windows systerm? you can use xshell to run it , Xshell terminal can works very well . in windows terminal ,it was really terrible and unfriendly, that you only can select |
OK. Can you repeat what I did in #9530 (comment) and attach the screenshot? I'd like to see how it looks like. |
Yeah I know XShell. We all know what it is. First, XShell is a commercial software that we can not just grab and use. Do understand the strict copyright restrictions in Microsoft about what we can use. Second, this isn't about how XShell behaves, this repo is about Windows Terminal. And we all want it to be better. |
in windows terminalselect
|
OK. I completely understand what you mean. I can think of two options.
let &t_SI = "\<Esc>[6 q"
let &t_SR = "\<Esc>[4 q"
let &t_EI = "\<Esc>[2 q" See #4335 (comment) for details.
"cursorShape": "bar", See here for details about the |
ok, i change the window terminal settings , thanks! |
You're welcome. Please try to understand & describe your problem before getting into discussions like this one. If you want us to help you, first you need to make sure we understand you. If you issue was "I want block cursor instead of bar cursor", this issue would've been solved yesterday, without 20+ emails sent to everyone subscribe this repo. Keep saying "the windows terminal have this problem in vim-repl" does NOT helps anyone. Please understand that reading the issues and get involved in discussions takes time. We all want to help the community but time is valuable for everyone. Check out How-To-Ask-Questions-The-Smart-Way(中文) to learn how to answer a good question. If you don't feel comfortable writing in English, write in Chinese and I'll translate for you. Just make sure you're asking a *good question. |
If the article feels too long, I've picked the most important section I can think of: Don't rush to claim that you have found a bug |
haha, i see and learn the artical, thanks! ^_^ |
windows terminal will send one more character when use vim view mode to select characters send to repl
The text was updated successfully, but these errors were encountered: