Skip to content
Source
Sign inSign up
pingdotgg/t3code
Open History to see the last commit

terminal.md

32 lines1.8 KB

1# Terminal
2​
3T3 Code includes integrated terminals running on the environment's host machine, with persistent scrollback across reconnects.
4​
5## Choose a shell
6​
7Set `T3CODE_TERMINAL_SHELL` in the T3 server's environment to an executable name or full path (no quotes or arguments) to override the platform default shell for new terminals. This does not affect agent commands or project setup/settle scripts.
8​
9Example for Git Bash on Windows (PowerShell, then fully quit and reopen T3 Code):
10​
11```powershell
12[Environment]::SetEnvironmentVariable('T3CODE_TERMINAL_SHELL', 'C:\Program Files\Git\bin\bash.exe', 'User')
13```
14​
15> Note: Use `bin\bash.exe`, not `git-bash.exe`. Remove with `$null` to restore the default.
16​
17## Scrollback and navigation
18​
19Each terminal retains up to **5,000 lines** and **8 MiB** of scrollback on the server.
20​
21| Action | macOS | Windows / Linux |
22| -------------------------- | ---------------------------------- | ------------------------------------------ |
23| Scroll page up/down | `Shift+PageUp` / `Shift+PageDown` | `Shift+PageUp` / `Shift+PageDown` |
24| Jump to start / latest | `Cmd+Shift+Home` / `Cmd+Shift+End` | `Ctrl+Shift+Home` / `Ctrl+Shift+End` |
25| Select all retained output | `Cmd+A` | `Ctrl+Shift+A` (`Ctrl+A` stays shell home) |
26| Next / previous terminal | `Cmd+Shift+]` / `Cmd+Shift+[` | `Ctrl+Alt+]` / `Ctrl+Alt+[` |
27​
28On iOS/iPadOS, long-press the terminal to paste or choose **Select Text**.
29​
30## fish shell
31​
32T3 Code launches `fish` with `no-query-term` to avoid startup delays, which overrides universal `fish_features`. To keep custom flags or re-enable `query-term`, export `fish_features` in the environment that launches T3 Code.