Skip to content
New to BhaiCode? Install the desktop app in under a minute, or build in your browser with Cloud Studio.
BhaiCode Docs
BhaiCode Docs
Desktop Workspace › Integrated PTY Terminal

Integrated PTY Terminal

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.

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.

Was this page helpful?

On this page