Skip to content

v1.2.4 — A readable terminal on Windows

Choose a tag to compare

@BE-AI-Research BE-AI-Research released this 07 Oct 04:33
· 206 commits to main since this release

v1.2.4 — A readable terminal on Windows

A hotfix for Windows shared sessions.

The symptom

In a shared session on Windows, a terminal's text slowly duplicated and became hard to read as
the session ran, while the layout itself held together.

The cause

Nothing had taken ownership of the client's console. A shared session renders in the detached
session host, which has no terminal of its own, so the Windows console setup Bubble Tea performs
when it owns a terminal never ran — and raw mode covers only the input handle. The console
therefore kept its OEM code page, which draws every non-ASCII byte of a frame as two or three
cells. Lines outgrew the width they had been padded to, the console wrapped them, the alt screen
scrolled, and every repaint after that landed one row out of step.

The fix

  • A client now takes its console's output for the length of an attach — VT processing on, no wrap
    at the last cell, output in UTF-8 — and puts back exactly what it changed on the way out.
  • A Windows terminal is no longer reported as non-UTF-8. It was being asked for the POSIX locale
    variables Windows does not set, so every Windows client was drawn with ASCII glyphs.

Nothing changes on Linux or macOS: a POSIX terminal needs no such setup, and its character set
still comes from the locale.

The full list is in CHANGELOG.md.

Install

curl -fsSL https://raw.githubusercontent.com/BE-AI-Research/be-code-redux/main/install.sh | sh

On Windows, in PowerShell:

irm https://raw.githubusercontent.com/BE-AI-Research/be-code-redux/main/install.ps1 | iex

You can also update with /update inside BE-Code. Binaries are provided for linux/amd64,
linux/arm64, darwin/arm64 and windows/amd64, along with the VS Code extension
(be-code-vscode-1.1.1.vsix). Checksums are in SHA256SUMS.