@ai-ecoverse/wasm-screen

中文文档
5.0.1-16发布于 2026/10/22GPL-3.0-or-later零依赖构建来源已验证近 30 天下载 2090

GNU screen, a terminal multiplexer: detach and reattach sessions with several windows.

原始使用文档
文档目录4 节
  1. Known limits
  2. 5.0.1-14 (homescoop#1149, #662; 2026-10-20)
  3. 5.0.1-15 (homescoop#1491; 2026-10-21)
  4. 5.0.1-16 (homescoop#1600, #1485; 2026-10-22)

@ai-ecoverse/wasm-screen

GNU screen 5.0.1 for slicc's wasm realm (Emscripten ABI, Asyncify fork), on slicc-kernel's pseudo-terminals.

pnpm add -g @ai-ecoverse/wasm-screen
screen -S work            # C-a d detaches
screen -ls                # lists your sessions (sockets in ~/.screen)
screen -r work            # reattach, from any terminal
screen -dmS job make      # detached session; screen -S job -X quit ends it

Each user's sockets live in ~/.screen (mode 700; $SCREENDIR overrides it), so one user's screen -ls, -r or -x never sees another's sessions. Since 5.0.1-10 screen also knows who it runs as (slicc-kernel's process credentials), as root or as any user. Up to 5.0.1-9 the package set SCREENDIR=/tmp/screens for everyone and screen saw Emscripten's fixed ids: the first user to start a session owned /tmp/screens, and every other user's screen -dmS then failed silently.

Known limits

  • Reattaching from another terminal needs slicc-kernel ≥ 1.35.1. The server opens the attaching terminal's device by path (screen's Linux route, passing the terminal over its socket with SCM_RIGHTS, is not available on the kernel's sockets), and older kernels hide other terminals' /dev/ttyN (slicc-kernel#192). On 1.35.1 screen -r, -d -r and -x attach from any terminal; on older kernels they return 0 without attaching, and the session stays Detached for its original terminal.
  • A remote screen -d <session> does not detach a session that is attached in another terminal.
  • screen -Q windows on a detached session prints nothing. Upstream 5.0.1 does the same natively: with no display, ShowWindows(-1) has no current window to list from (homescoop#662). Pass a format instead: screen -Q windows '%n %t'.

5.0.1-14 (homescoop#1149, #662; 2026-10-20)

package.json no longer sets publishConfig.tag: next, which disagreed with the latest channel it's published to. The description is one plain sentence. cert/query.mjs pins the -Q windows behaviour above.

5.0.1-15 (homescoop#1491; 2026-10-21)

A packaging bump for the updated shims/slicc (posix_spawn errno, /etc/hosts first, kernel-only environment, node name). screen's own code is unchanged.

5.0.1-16 (homescoop#1600, #1485; 2026-10-22)

This README is the only one: the recipe-root copy that build.sh used to copy over it is gone, and build.sh fails if one comes back. cert/docs.mjs checks that the tarball ships this file. cert/stuff-log.mjs drives a window from outside with -X stuff, -X hardcopy and -L -Logfile.

版本与发布记录

@ai-ecoverse/wasm-screen 共发布 13 个版本,首次发布于 2026/10/02;过去 12 个月发布了 13 个版本。最新版本附带 npm provenance 构建来源证明,可追溯到公开的 CI 构建记录。

版本发布日期距今
5.0.1-16latest2026/10/2216 天前
5.0.1-152026/10/2217 天前
5.0.1-142026/10/2118 天前
5.0.1-132026/10/1920 天前
5.0.1-122026/10/1721 天前
5.0.1-112026/10/1622 天前

关于 @ai-ecoverse/wasm-screen 的常见问题

@ai-ecoverse/wasm-screen 是什么?

GNU screen, a terminal multiplexer: detach and reattach sessions with several windows.

如何安装 @ai-ecoverse/wasm-screen?

在项目目录运行 npm install @ai-ecoverse/wasm-screen,或使用 pnpm add / yarn add / bun add。

@ai-ecoverse/wasm-screen 支持 TypeScript 吗?

该包的 package.json 没有声明类型入口。需要类型提示时,可以在 npm 上查找社区维护的 @types/ai-ecoverse__wasm-screen 是否存在。

@ai-ecoverse/wasm-screen 可以商用吗?

@ai-ecoverse/wasm-screen 使用 GPL-3.0-or-later 许可。强 Copyleft:分发包含该代码的软件时,整个作品需以 GPL-3.0 兼容许可开源,并附带专利与反锁定条款。仅内部使用不触发此义务。以上为概括,不构成法律意见,请以许可原文为准。

@ai-ecoverse/wasm-screen 的下载量有多少?

根据 npm 官方下载统计,@ai-ecoverse/wasm-screen 在 2026/10/05 – 2026/11/03 这 30 天内被下载 2,090 次,日均约 70 次。下载量会把 CI 构建、镜像同步和作为其他包依赖的安装一并计入,适合横向比较热度,不能直接等同于使用人数。

@ai-ecoverse/wasm-screen 还在维护吗?

最新版本 5.0.1-16 发布于 2026/10/22(16 天前);至今共发布 13 个版本,其中过去 12 个月发布了 13 个;首次发布于 2026/10/02。发布频率只是参考信号:功能稳定的工具可能很少需要更新,建议结合源码仓库的 issue 和提交记录判断。