magiblot / turbo

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

Weirdness when resizing under windows. #28

Closed leimath closed 2 years ago

leimath commented 2 years ago

image 2022-05-16-000062

I have made similar issues for other text editors (vim, helix) so I am not looking for a fix but rather what causes this ? As in why does resizing breaks text editors on windows whereas macOS and linux work fine. If someone happens to know the cause, would be good to know the underlying reason.

magiblot commented 2 years ago

Hi leimath!

In the case of Turbo this has nothing to do with Windows. It's just that the logic of resizing the subwindows is crappy and it needs to be fixed. At least that's what I can tell from the screenshots you shared.

Regarding the other editors, the thing is that the Win32 Console API is completely different from Unix's console model. Adding Windows support to an application that was first written with Unix in mind may require great structural changes and having a deep understanding of the Win32 Console API, so my guess is that most of these applications simply have poor Windows support.

Cheers.

leimath commented 2 years ago

Thanks for the explanation! That helps my curiosity. So there is nothing much that can be done by the looks of it and gui editors will be the way to go here.

I am closing this issue since my query is answered. Thanks again!