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, orfish - Linux:
bash,zsh, or a custom login shell - Windows: PowerShell (
pwsh.exe/powershell.exe), Command Prompt (cmd.exe), or WSL (wsl.exe)
- macOS:
- 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, ordocker compose upin 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?