> ## Documentation Index
> Fetch the complete documentation index at: https://012e27a-docs-2.manicule.dev/llms.txt
> Use this file to discover all available pages before exploring further.
> For every page in one file, fetch https://012e27a-docs-2.manicule.dev/llms-full.txt (large).
> To search and read these docs as tools, connect the MCP server at https://012e27a-docs-2.manicule.dev/api/mcp.
> Every agent surface: https://012e27a-docs-2.manicule.dev/.well-known/llms-manifest.json

# Integrated PTY Terminal (/desktop/terminal)

<!-- agent-signals: reading_time_min: 1 · est_tokens: 266 · updated: 2026-11-12 -->
Related: [Desktop Workspace Overview](/desktop/overview.md), [Agentic Canvas Mode](/desktop/agentic-mode.md), [Code Editor & Highlight-to-Ask AI](/desktop/code-editor.md), [Multi-File Visual Diff Viewer](/desktop/diff-viewer.md), [Transparency Dock & Approval Gates](/desktop/transparency.md), [Cloud Studio Overview](/studio/overview.md)

> A native pseudo-terminal with xterm.js, OSC 133 command blocks, and background tabs.

BhaiCode Desktop embeds a hardware-accelerated pseudo-terminal: **xterm.js** in the UI and
**portable-pty** in the Rust core.

## Capabilities

* **Native shell detection** — BhaiCode uses your default shell:
  * macOS: `/bin/zsh`, `/bin/bash`, or `fish`
  * Linux: `bash`, `zsh`, or a custom login shell
  * Windows: PowerShell (`pwsh.exe` / `powershell.exe`), Command Prompt (`cmd.exe`), or WSL (`wsl.exe`)
* **OSC 133 command integration**: each command block is visually demarcated with its runtime
  and exit status.
* **Background tabs**: keep long-running processes like `npm run dev`, `cargo watch`, or
  `docker compose up` in their own tab while you keep chatting with Bhai.
* **Split panes**: run terminals side by side with `Cmd + D` / `Ctrl + Shift + 5`.

<Tip>Because the agent runs commands through the same PTY, its output appears in your terminal
history — you can see exactly what was executed, gated by the
[Transparency Dock](/desktop/transparency).</Tip>
