DP Code ships with a built-in terminal so you can run shell commands without leaving the interface. The terminal opens as a drawer at the bottom of the screen and is scoped to the active thread’s working directory. You can open multiple terminal panes, split them side by side, and switch between them — all while your AI session continues in the same view.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/Emanuele-web04/dpcode/llms.txt
Use this file to discover all available pages before exploring further.
Opening and controlling the terminal
The terminal is hidden by default. Use the keyboard shortcut or the toolbar button to bring it up.Default keybindings
| Shortcut | Action | Context |
|---|---|---|
mod+j | Toggle the terminal drawer open/closed | Any |
mod+d | Split the focused terminal horizontally | Terminal focused |
mod+t | Open a new terminal pane | Terminal focused |
mod+w | Close the focused terminal pane | Terminal focused |
mod is Cmd on macOS and Ctrl on Linux and Windows.
All keybindings can be customized. See Keybindings for the full reference and override syntax.
Terminal operations
DP Code supports the following terminal operations for each pane:| Operation | Description |
|---|---|
| Open | Start a new terminal session in a given working directory with an optional size (columns × rows) and environment variables. |
| Write | Send input to the terminal’s stdin — used for automated commands and agent-driven shell interactions. |
| Resize | Adjust the terminal dimensions. Columns must be between 20 and 400; rows between 5 and 200. |
| Clear | Clear the terminal’s visible output and scroll buffer. |
| Restart | Kill the current shell process and start a fresh one in the same working directory. |
| Close | Terminate the terminal session and optionally delete its history. |
Terminal session states
Each terminal pane goes through the following states:| State | Description |
|---|---|
starting | The shell process is being launched. |
running | The shell is active and accepting input. |
exited | The shell process exited cleanly. |
error | The terminal encountered an error. |
Multiple panes and split support
You can run as many terminal panes as you need alongside an AI session. Each pane is an independent shell process with its own history and state.Open the terminal
Press
mod+j or click the terminal button in the toolbar to open the terminal drawer.Split the terminal
Press
mod+d while the terminal is focused to split the current pane. The two panes share the drawer space side by side.Open an additional pane
Press
mod+t to open a new independent terminal pane. You can cycle between panes by clicking them.