Skip to content

Run Commands in the Desktop Terminal

Run your system shell in Desktop and keep dev servers separate from short checks.

Use the integrated terminal to run project commands without leaving BhaiCode Desktop. It runs your system shell through a pseudo-terminal (PTY), so the syntax and programs available depend on your shell. Give long-running processes their own tab so you can still run tests or inspect output elsewhere.

Check which shell you’re using

Desktop detects and opens your default system shell. The terminal display uses hardware-accelerated xterm.js, while the compiled Rust core uses portable-pty to manage the shell process.

PlatformShell examples
WindowsPowerShell (pwsh.exe or powershell.exe), Command Prompt (cmd.exe), or WSL (wsl.exe)
Linuxbash, zsh, or a custom login shell
macOS/bin/zsh, /bin/bash, or fish

The entries describe shell detection, not installer availability. Windows x64 is the only published Desktop build; see installation for platform status. Check which shell opened before copying a command that depends on its syntax. A PowerShell command may need different quoting in Command Prompt or WSL.

Separate servers from short commands

Give the server a background tab

Open a separate terminal tab and start the process your project needs, such as npm run dev, cargo watch, or docker compose up. Leave that tab running while you continue working or talking to agents.

Open a second pane for checks

Press Ctrl + Shift + 5 on Windows or Linux (Cmd + D on macOS) to split the terminal into side-by-side panes. Use the other pane for short commands, such as a test or a linter run, while the server continues writing to its own terminal.

Return to the server output when needed

Open the server tab if the app stops responding or a build fails. Keeping that output separate lets you inspect the server log without mixing it with output from tests.

Read command output

The terminal uses OSC 133 shell integration to mark individual command blocks and display execution times and exit status codes. Use the block boundaries to match an error to the command that produced it. If a command exits unexpectedly, check its status and output before rerunning it.

For example, if you run a build and then a test in the same pane, inspect each command block separately. The last exit status tells you about the test, not whether the build succeeded.

Next

Was this page helpful?