Skip to content

4.15.1 - Fix Windows build break in Terminal.

Latest
Compare
Choose a tag to compare
@penny-for-vapor penny-for-vapor released this 23 Oct 17:03
966d89a

What's Changed

Fix Windows build break in Terminal. by @jeffdav in #205

There are three things that cause Terminal to not build on Windows:

  1. isprint() returns an Int32 which requires an explicit comparison. Easy fix: just compare against 0.
  2. _getch() returns an Int32, but Unicode.Scalar() takes a UInt32. So we must cast.
  3. The entire implementation of size was Posix-specific. Add a Windows implementation.
This patch was released by @0xTim

Full Changelog: 4.15.0...4.15.1