[Bug]: Broken/cascading TUI rendering layout on Windows (PowerShell/CMD)

未关闭
#3,501 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
4/5
预计耗时
3-5 天
新手友好度
35/100
Issue 类型
缺陷
描述清晰度
需要澄清
活跃度
活跃
技术栈
node.js, powershell
领域
cli, desktop-dev

调研方向

Start by reproducing the layout failure in Wave Terminal v0.14.5 on Windows 10 or 11 with a local PowerShell or Command Prompt profile, then run the mentioned TUI example, npx freebuff. Compare its fixed-grid rendering with native Windows Terminal and verify that text and borders remain aligned after the fix.

由索引模型根据 Issue 内容生成。

描述

bug triage
Current Behavior
Describe the Bug

When running full-screen terminal user interfaces (TUI) built with Node.js (like Freebuff, which uses blessed or ink under the hood) on Windows using a local PowerShell or CMD profile, the interface layout renders incorrectly. The text lines and border boxes break and cascade incrementally to the right side of the screen instead of aligning properly.

To Reproduce
  1. Open Wave Terminal on Windows (Windows 11 / Windows 10).
  2. Use a local profile (PowerShell or Command Prompt).
  3. Run a TUI application (e.g., npx freebuff or any advanced interactive Node.js CLI tool).
  4. Observe the shifted, cascading render layout.
Expected Behavior

The text interface and box borders should render properly aligned to the left edge of the terminal window, maintaining a correct fixed grid width (e.g., 80 columns), just like it does in native Windows Terminal or classic CMD.

Screenshots

(PLEASE PASTE YOUR SCREENSHOT HERE)

Additional Context
  • OS: Windows
  • Shell: PowerShell / CMD
  • Wave Terminal Version: Latest
  • Attempted Fixes (did not work):
    • Setting term:fontfamily to "Consolas" in settings.json
    • Forcing "term:localshell": "cmd" and "term:localshellpath"
    • Setting environment variables prior to launch: $env:TERM="xterm-256color", set COLUMNS=80, set LINES=24
    • Resizing the terminal window or using Ctrl + L (the block formatting remains permanently broken).
Expected Behavior

The text interface and box borders should render properly aligned to the left edge of the terminal window, maintaining a correct fixed grid width, just like it does in native Windows Terminal or classic CMD.

Steps To Reproduce
Image
Wave Version

v0.14.5

Platform

Windows

OS Version/Distribution

No response

Architecture

arm64

Anything else?

No response

主要语言
Go
星标
22.3k
派生
1.1k
PR 合并指标
30 天内没有已合并 PR

贡献指南

打开贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

wavetermdev/waveterm 的其他 Issue

查看 wavetermdev/waveterm 的全部 Issue

相似的 Issue

更多 Go Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。