magiblot / turbo

An experimental text editor based on Scintilla and Turbo Vision.
Other
466 stars 36 forks source link

Bug report #33

Closed kotoOo closed 1 year ago

kotoOo commented 2 years ago

Sorry for not providing all the details, I'm kind of in a hurry, but bad news are: mouse sequences are somehow leaking into edited files. Platform: Ubuntu 18.04 on WSL / Windows 10 / standard TTY. It has turned out suddenly, as a week or so I was happily editing -and- actually using mouse to switch between windows, arrange windows and access menus.

I might suspect that the bug might be somewhere around seleting text with mouse.

magiblot commented 2 years ago

Hi Koto!

Yes, I have too experienced this in the past, and I am pretty sure this is a Windows issue.

Have you compiled Turbo manually? If so, edit the file deps/tvision/include/tvision/internal/ncursinp.h and change the readTimeout variable (line 24) from 5 to 10. Then recompile Turbo and try again. If you still experience the issue, try with larger values (20, 50...).

If you find a value which works, let me know.

magiblot commented 1 year ago

I had to raise readTimeout to 10 milliseconds for other reasons (https://github.com/magiblot/tvision/commit/3658c2a4ff5d20158335db716f44c75102636d8c), so I'll assume that this was fixed too. But please let me know if you run across this issue again.