Take Command lets you reuse text from an earlier shell-integrated command without rerunning that command. You can browse results from open terminal tabs and panes, including sessions started through an SSH profile. Copy the output to the clipboard, save it as a text file, or insert a safe single line at a shell prompt. This feature does not run captured output as a command.
1.Open the terminal tab where you want to reuse output. To insert text directly, this must be the destination tab; otherwise you can copy or save from any terminal tab.
2.Choose Tabs > Reuse Command Output... from the menu, or choose Reuse Command Output... on the Tabs ribbon.
3.Select a result in the list. The picker shows its command and exit status, and identifies its source tab, profile, and host. The preview displays the retained plain-text output.
4.Choose Copy as Input, Save Output..., or Insert in Tab. Choose Close to leave without taking an action. Pressing Enter in the picker does not select an action.
You can also open the menu on a command-result card and choose Reuse This Output.... That result is selected first in the picker; you can still choose output from another session.
Only results marked by shell integration and still retained in open terminal buffers appear. The list includes up to 64 results per terminal view and 512 results in total. Closing a source tab makes its output unavailable through this picker.
Action |
What happens |
|---|---|
Copy as Input |
Copies the full selected output to the clipboard. It does not paste or execute it. You can inspect or edit the copied text elsewhere before manually pasting it into a prompt. A later paste uses the terminal's usual paste safeguards. |
Save Output... |
Opens a file dialog and saves the full output as a UTF-8 text file at the location you choose. |
Insert in Tab |
Sends an eligible single line to the tab from which you opened the picker, without sending Enter. Review the prompt before deciding whether to run it. |
For example, to reuse a value produced in one tab, open the picker from the destination tab, select the source result, inspect the preview and its source identity, and choose Copy as Input. Paste only the text you want. If the result is a safe single line and the destination is ready at a shell prompt, you can instead choose Insert in Tab and then review the unsubmitted line.
Insert in Tab is available only for a writable ConPTY terminal at a shell-integrated prompt. It is refused in read-only tabs, replay tabs, full-screen applications, unsupported input modes and transports, and when the terminal input pipe is unavailable. The selected output must be nonempty, no longer than 8,191 characters, and contain no line breaks or control characters. Multiline output can still be copied or saved.
When the source is another tab, pane, or host, a confirmation shows the source and destination profiles, hosts, and tabs. Check all six fields before accepting. Configured SSH connections identify their remote host; local sessions use the computer name, and serial sessions identify their port. If you manually start an SSH client inside a local terminal, the picker cannot discover the remote host and shows the local computer instead. The cross-session confirmation is for Insert in Tab; copying or saving does not send data to another session.
Insertion never sends Enter. The terminal may also show its usual warning for suspicious pasted text, if paste-risk warnings are enabled. Do not assume that copied text is trustworthy just because it came from one of your sessions. Review it before manually pasting or submitting it.
•The preview shows at most 16,384 characters; the actions use the complete captured output. Each output snapshot is limited to four million characters. Plain-text snapshots omit terminal styling and do not reveal concealed terminal cells.
•Output is loaded when you select a result. If its source closed, its command row was overwritten, or its scrollback was discarded before it could be loaded, the picker shows a load error and disables its actions for that selection. Choose another result.
•If the picker says no results are available, run a command in an open tab with shell integration enabled and check that its output remains in scrollback. Commands without integration markers do not appear.
•If direct insertion is refused, use Copy as Input and inspect the clipboard text. Check for line breaks or control characters, confirm the target is a writable ConPTY shell prompt, and do not retry an ineligible input in a full-screen application.
•If insertion reports a write error, some text may already have been sent. Check the destination prompt before retrying; do not paste the whole output again without checking.
Copying and saving leave both terminal buffers unchanged. The optional TCFROM command-line helper is not included in this feature.