Shellby Shellbydocs
指南Guides ← 返回首页← Home

多会话 · 分屏Sessions & Split View

把桌面级的多终端能力带到每一端。

会话标签

  • 每个连接是一个标签。点标签栏 + 在当前窗口新建会话。
  • 拖拽标签可重排顺序。
  • ⌘W 关闭当前会话(Mac / iPad 硬件键盘)。

分屏

  • Mac / iPad 点「分屏」即可并排显示所有会话,排布支持 自动 / 左右 / 上下 / 网格
  • iPhone 仅在 横屏 下分屏(竖屏并排太窄不可读)。

断线重连

会话假死 / 断线会被自动探测并重连;也可右键标签强制「重新连接」。

Mosh 兼容连接

主机可以选用 Mosh 兼容传输:它走 UDP,切换 Wi-Fi / 蜂窝网络、设备休眠唤醒之后会话都不会断,弱网下打字也不会卡顿堆积。

但它不保留滚动历史。这是协议本身的取舍,不是缺陷:该协议同步的是「当前这一屏应该长什么样」,而不是完整的输出字节流——滚出屏幕的内容在服务端就被丢弃了,从来没有经网络传过来。所以在 Mosh 兼容会话里往上翻是空的,跑 tail -fseq 1 1000 这类持续输出时尤其明显。mosh 官方客户端同样如此。

  • 需要回头翻阅输出 → 用 SSH 连接,滚动历史完整保留(回滚行数可在「设置 ▸ 终端」调整)。
  • 既要漫游又要历史 → 在远端跑 tmuxscreen,由它接管历史,用 Ctrl-b [ 进入复制模式翻页。

Desktop-class multi-terminal on every device.

Session tabs

  • Each connection is a tab. Tap + in the tab bar to open a new session in the current window.
  • Drag tabs to reorder.
  • ⌘W closes the current session (Mac / iPad hardware keyboard).

Split View

  • On Mac / iPad, tap “Split” to show all sessions side by side — arrange auto / columns / rows / grid.
  • On iPhone, split is available in landscape only (portrait is too narrow to read).

Auto-reconnect

Stalled / dropped sessions are detected and reconnected automatically; you can also force “Reconnect” from a tab’s context menu.

Mosh-compatible connections

A host can use the Mosh-compatible transport. It runs over UDP, so sessions survive Wi-Fi ↔ cellular switches and device sleep, and typing stays responsive on lossy links.

It keeps no scrollback. That is inherent to the protocol, not a defect: it synchronises what the screen should look like right now rather than the full stream of output — lines that scroll off are discarded on the server and never travel over the network. Scrolling up in a Mosh-compatible session therefore shows nothing, which is most obvious with continuous output such as tail -f or seq 1 1000. The official mosh client behaves the same way.

  • Need to read back through output → use SSH, where scrollback is kept in full (buffer size is configurable under Settings ▸ Terminal).
  • Want both roaming and history → run tmux or screen on the server and page through its copy mode with Ctrl-b [.