joachimschmidt557 / linenoize

A port of linenoise to zig
MIT License
55 stars 9 forks source link

Preliminary Win32 support #8

Closed omgtehlion closed 1 year ago

omgtehlion commented 1 year ago

This code uses the same escape sequences on modern(-ish) windows terminals. Just sets up a terminal to support escape codes and works around some quirks (like reading Unicode from win32 console via ReadFile).

Missing is support for Windows7/8 and older versions, as it requires a lot of changes.

joachimschmidt557 commented 1 year ago

Thanks! Sorry for the delay. Could you rebase the changes on the latest version of the master branch? That version includes may fixes for updating to the latest breaking Zig changes.

omgtehlion commented 1 year ago

Yup, will take a look later today or tomorrow. Most of these fixes are the same as in commit d0934d2, so I suppose it will not be very difficult.

omgtehlion commented 1 year ago

replaced with https://github.com/joachimschmidt557/linenoize/pull/11