arakiken / mlterm

Other
156 stars 14 forks source link

macOS: input breaks output in many ways #32

Closed Atemu closed 2 years ago

Atemu commented 2 years ago

This is how mlterm looks after typing few ls into it on macOS 12:

Screenshot 2022-01-16 at 18 30 06

Safe to say, this makes mlterm unusable.

Is anyone able to reproduce this?

arakiken commented 2 years ago

I test mlterm-cocoa in MacOS 10.13 or before, and it works fine. I have no machines to install MacOS 12 and it is difficult to prepare a test environment to reproduce this problem for now.

Thinking about trying to fix it in the future, can you let me make sure of some things?

Atemu commented 2 years ago

Hi, thanks for taking a look!

I have no machines to install MacOS 12 and it is difficult to prepare a test environment to reproduce this problem for now.

I see.

FYI, you can get a modern macOS without modern mac hardware using https://github.com/kholia/OSX-KVM from a Linux host with an AVX2-capable CPU.

arakiken commented 2 years ago

Thanks. Does this behavior change if you change "#if MAC_OS_X_VERSION_MAX_ALLOWED >= 101400" in cocoa.m to "#if 0" or "#if 1" ? https://github.com/arakiken/mlterm/blob/master/uitoolkit/quartz/cocoa.m#L17

Atemu commented 2 years ago

Nothing changes unfortunately.

Atemu commented 2 years ago

This seems to have been a caused by our old apple SDK. Using version 11 fixes the issue.