Skip to content

Masa v1.8.0 — multi-tab terminal, clipboard shims, online brew index

Choose a tag to compare

@ClausValcaTD ClausValcaTD released this 17 Nov 20:43
· 1 commit to main since this release

Masa v1.8.0 turns the GUI terminal into a real daily driver, brings the
macOS clipboard to the shim layer, and makes the Homebrew formula index
queryable offline.

Highlights

masa-term: tabs, scrollback and copy/paste

masa-term grows from a single window into an iTerm2-style terminal:

  • Up to 16 tabs, each with its own pseudo-terminal and its own libvterm
    screen — Ctrl-Shift-T to open, Ctrl-Shift-W to close, Ctrl-Tab (or a
    click on the new tab bar) to switch.
  • Per-tab scrollback — the last 1000 scrolled-off lines, browsed with the
    mouse wheel or Shift-PageUp/Shift-PageDown; any other keystroke snaps
    back to the live screen.
  • Mouse selection and copy/paste — drag to select, Ctrl-Shift-C to copy
    through SDL's clipboard, Ctrl-Shift-V to paste (newlines become Return).

masa-term

pbcopy / pbpaste shims

macOS scripts pipe to pbcopy and read back with pbpaste; both are now Masa
shims, created by masa init-shims and active inside masa exec and
masa shell. They prefer a reachable host clipboard tool (wl-copy/wl-paste,
xclip, xsel) and otherwise keep a clean local clipboard file, so the round
trip works with no display — CI, a headless container. The file defaults to
$TMPDIR/masa-clipboard and is pinned with $MASA_CLIPBOARD_FILE.

echo "hello" | pbcopy
pbpaste        # hello

masa brew update / info / search

masa brew gains an online formula index:

masa brew update        # fetch formula.json into the cache
masa brew info wget     # version, description, homepage, dependencies
masa brew search ssl    # case-insensitive name search

masa brew update downloads formula.json with curl -fSL (a file:// URL
or a bare path is copied locally, so it is testable offline) into
$MASA_BREW_CACHE. info and search read it through a small
dependency-free JSON reader (src/brew.c) — no jq, no Ruby.
$MASA_BREW_API_BASE overrides the https://formulae.brew.sh/api base.

Everything from before

v1.8.0 builds on v1.7.0 (online Homebrew taps, casks and partial
Flutter/Dart framework stubs), v1.6.0 (Danroot Layer 5 — clean-room AppKit and
CoreGraphics over SDL2), v1.5.0 (the cross-architecture bridge), v1.4.0
(CoreFoundation + Objective-C runtimes), v1.3.0 (virtual root) and v1.2.0
(dynamic library loading) — see the README.

Packaging and verification

  • 130 core tests / 0 failed and 78 GUI tests / 0 failed, gcc and
    clang, with AddressSanitizer + UndefinedBehaviorSanitizer and zero leaks.
  • Zero compiler warnings (-std=c11 -Wall -Wextra -Werror).
  • Cross-builds clean with MinGW-w64 (Windows) and the Android NDK
    (aarch64).
  • make dist produces archives for Linux, Windows and Android
    with a SHA256SUMS file.

Downloads

Archive Target
masa-1.8.0-linux-x86_64.tar.gz / .zip Linux x86_64
masa-1.8.0-windows-x86_64.tar.gz / .zip Windows x86_64 (MinGW-w64)
masa-1.8.0-android-aarch64.tar.gz / .zip Android aarch64 (Termux)

Verify with sha256sum -c SHA256SUMS.