-
Notifications
You must be signed in to change notification settings - Fork 1.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
Escape sequences on mouse movement when disconnected from SSH session while Micro was opened. #1322
Comments
More sleuthing. https://github.com/Maximus5/ConEmu/blob/master/src/ConEmu/RealConsole.cpp#L15204 https://github.com/Maximus5/ConEmu/blob/1a2363ef646dfe8c225347c3f54eac9a26993130/src/ConEmu/RealConsole.h#L885 (so it is a bitmask)
Why do I suspect that this Therefore, my conclusion is:
|
So where is this tmm_ANY coming from? OK, but where does micro send this escape 1003? We must dig into tcell. https://github.com/zyedidia/tcell/blob/master/terminfo/s/screen/term.go#L38 https://github.com/zyedidia/tcell/blob/master/terminfo/x/xterm/term.go#L37 So I suppose the workaround for this is to remove A more robust fix would also unset Here is a build of micro with the any-event mouse escapes disabled in case your terminal is buggy like mine, aka ConEmu. https://github.com/ecx86/tcell/releases/tag/12345 I hate terminals so much. |
Sorry about this problem, it seems like you've done quite a bit of digging to find the source, but there is no good solution in sight. One thing to note is that you can disable the mouse in micro by setting the |
Hey zyedidia, thanks for taking the time to reply. No hostility from me towards your project, in fact, I actually like it a lot. I didn't want to disable mouse (because I find the mouse support to be really useful and well-done compared to other editors). However, that required fixing the issue with the mouse events. I agree there is no real solution to this in sight-- the likely solution is to fix the emulation inside ConEmu, but that codebase seems very complicated and I don't want to touch it. Hence the workaround :-) |
I had a similar problem in WSL with Windows Terminal and mintty, when moving the mouse cursor and pressing ESC simultaneously. With 2.0.8 the issue is fixed for me. Edit: actually there is still something wrong, this time not with mouse movement but mouse scroll + ESC |
I had 3 terminal windows opened (1 terminal split into 3) and one of them started doing it but not the others. I was SSH'd into my GCP server and was using Micro when it started.
It seems this happens when you are SSH'd into a server and I believe your connection times out while you have Micro opened. Then it starts doing this. Just after I made a post to a much older thread about a month or so ago, I made a change on one of my boxes and it has not happened since, but I can't remember what it was, so I am going to go searching for it. I am pretty sure I just changed the timeout on the box, though. I fired up a new box and it is happening on that one, which is what prompted / reminded me to come update this.
It seems the only way to stop it is to physically close the terminal window and then go back in.
I do occasionally see it randomly without being disconnected, though, I am not 100% sure of the circumstances in which cause it as it is only sometimes. It might have something to do with changing focus to another window and coming back, but it is quite seldom, and I change window focus all the time, so there much be some other factor. When it does this without being disconnected, it looks like this:
I had opened Micro using an alias, edited a file, saved and then closed it and that was what it looked like. A simply ctrl + c cleared it out and I can go on about my business.
micro --version
Version: 1.4.1
Commit hash: 1856891
Compiled on August 10, 2018
The text was updated successfully, but these errors were encountered: