Skip to content

Releases

weft 0.2.1: Unicode correctness and native Windows terminals

Choose a tag to compare

@standrze standrze released this 18 Oct 04:41
f3f030a

Fix locale-dependent Unicode cell widths and add native Windows terminal support.

  • Combining marks and ignorable scalars no longer consume cells under the Linux C locale.
  • Native Win32 console sessions support Unicode input, mouse/focus/resize, async readiness, restoration, and terminal handoff.
  • Native ConPTY processes provide bounded I/O, resize, exit status, final-output draining, and process-tree cleanup.
  • CI pins Swift 6.4.1 and validates macOS, Linux in both C and C.UTF-8, and Windows, including private-console and real ConPTY checks.

Canonical Windows console input and POSIX shell job control are explicitly unsupported. Native console byte input is reconstructed UTF-8/VT; original Kitty/paste framing is not guaranteed. See Documentation/PlatformSupport.md for the full contract.

Passing platform validation.

0.1.2: Bounded cursor-position queries

Choose a tag to compare

@standrze standrze released this 13 Oct 15:41

Adds bounded cursor-position queries for applications that anchor inline terminal interfaces.

  • TerminalSession.requestCursorPosition(timeoutMilliseconds:) returns an ID and completes through the existing poll or TerminalEvents reader.
  • Typed outcomes cover a zero-based position, timeout, and cancellation. Only one query may be pending; async timeouts complete without keyboard input.
  • Fragmented replies are decoded without exposing terminal reports as typed text or creating a second input reader.
  • Cursor reports are advisory because the ANSI protocol has no request token. Applications retain ownership of viewport anchoring and output recovery.

Validation: 30 unit tests, formatting, standard PTY smoke, and cursor-query PTY smoke passed on macOS with Swift 6.4. The PTY check covers fragments, interleaved keyboard/resize, idle timeout, and mode restoration. Linux and a terminal-emulator compatibility matrix were not run for this release.

weft 0.1.1

Choose a tag to compare

@standrze standrze released this 30 Sep 10:51

Preserves current true-color detection when applications migrate to the standalone package.

Recognizes additional terminal environments, including Windows Terminal, Alacritty, Rio, Warp, VS Code, and foot. Explicit color settings and NO_COLOR handling remain covered by tests.

Validated on macOS: 26 unit tests, formatting, and demo PTY checks.

weft 0.1.0

Choose a tag to compare

@standrze standrze released this 30 Sep 01:05

The first standalone SwiftPM release of weft, extracted from ono-sendai.

  • Lowercase weft library product and module.
  • Terminal sessions, incremental input decoding, asynchronous events, ANSI output, and terminal geometry.
  • Original SVG README banner, installation instructions, architecture notes, and an interactive demo.
  • Apache-2.0 license.

Validation on macOS with Swift 6.4: formatting checks, 26 unit tests, and PTY startup/input/resize/exit/restoration checks passed. Linux paths are included but unverified for this release. APIs may change before 1.0.