Use docspress/terminal-session for one copyable command with optional read-only output. It looks like a terminal transcript but never executes code.
When to use it
Choose Terminal Session when the command and its expected output belong together. Use Colorful Code for scripts or configuration files and Code Tabs for equivalent commands. Use API Request / Response for an HTTP exchange.
Attributes
Terminal Session attributes
docspress/terminal-session.-
titlestring -
Plain-text session heading.
-
shellstring -
Shell or runtime label.
-
promptstring -
Prompt displayed before the command.
-
commandstring required -
Plain command copied by the reader.
-
outputstring -
Optional read-only expected output.
No fields match this filter.
Creative examples
Run the package checks
npm run packageTests passed
Bundle rebuilt
Preview a safe reconciliation
npx docspress publish ./docs --dry-runFound 42 desired pages
Would create 0
Would update 3
Would trash 1
Conflicts 0
Inspect one response in PowerShell
Invoke-RestMethod https://example.test/wp-json/ | Select-Object name, urlname url
---- ---
DocsPress https://example.test
Published behavior and accessibility
Copy copies only command, never the prompt or output. The output has an accessible command-output label, and long lines remain scrollable. No shell process or browser evaluation is attached to the block.
Show only the output needed to recognize success. Do not include volatile timestamps, personal paths, secrets, or pages of logs.