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

# Integrated PTY Terminal (/docs/desktop/terminal)

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

> High-performance terminal emulation with portable-pty and xterm.js in BhaiCode Desktop.

BhaiCode Desktop embeds a hardware-accelerated pseudo-terminal (PTY) powered by **xterm.js** in the UI and **portable-pty** in the native Rust core.

***

## Features

* **System Shell Detection**: Automatically uses your default system shell:
  * macOS: `/bin/zsh`, `/bin/bash`, or `fish`
  * Linux: `bash`, `zsh`, or custom login shells
  * Windows: PowerShell (`pwsh.exe` / `powershell.exe`), Command Prompt (`cmd.exe`), or WSL (`wsl.exe`)
* **OSC 133 Command Integration**: Visual demarcation of individual command blocks, execution runtimes, and exit status codes.
* **Background Task Tabs**: Run long-lived dev servers (`npm run dev`, `cargo watch`, `docker compose up`) in separate background tabs while continuing to converse with agents.
* **Split Terminals**: Open terminal panes side by side with `Cmd + D` / `Ctrl + Shift + 5`.
