Each tab has one persistent interactive shell in a pseudo-terminal. Composer lines run in that session, and a live terminal-emulated preview updates in the scrollback as output arrives. Carriage returns redraw progress in place; the preview becomes the final transcript when the command completes. Programs that buffer their output cannot show it until they flush. A program that needs direct keyboard input can temporarily take over the same terminal. On Windows the terminal is ConPTY. The screen is drawn with xterm.js.

For example, submit this PowerShell loop in the composer:

for ($i = 1; $i -le 5; $i++) {
    Start-Sleep -Seconds 1
    Write-Output "loop $i"
}

Each loop line appears as it is written; you do not need to open Interact just to watch progress. Use Interact when the command needs direct input. Taking over removes the preview and discards that command’s captured transcript.

These open a terminal on their own:

The Termorq interactive terminal attached to a persistent shell session
Current-source Pro desktop preview of @shell attached to the tab’s existing session.

  • Editors and pagers
  • ssh and sudo
  • top
  • git commit without -m, and git add -p
  • docker exec -it
  • A REPL started without a script, such as python, node, or psql mydb

@shell shows the tab’s existing shell session until you type exit to return to the composer.

Keys, Ctrl+C, and Ctrl+L go to the program. Ctrl+Shift+C copies. Ctrl+Shift+V pastes. End session on the terminal’s header stops it. When it exits, the tab is back to the normal prompt with one line saying how it ended.

Taking over a running command discards that command’s captured output. Later terminal bytes stay out of it. While that command still owns the terminal, its output is not matched by output triggers and its keystrokes are not broadcast to other panes.

Termorq commands on the terminal header, or Ctrl+J, uses the same composer while the program is open. A shell line, @shell, and a line that starts with / stay in that draft. The program does not receive them. A shell line reports Shell command not submitted. Return to program keeps that draft and does not type it into the program. When the program ends, the composer returns to the text and Ask mode from when the program opened.

Switching tabs keeps the session running. cd in the composer or in the interactive terminal changes the same shell’s working directory, so later commands use the new folder. Settings → Start folder applies when a new tab opens. A pane you split starts in the folder of the pane you split, unless Settings → Terminal → Same folder for a new pane is off.

Settings → Interactive programs turns automatic terminal takeover off. With it off, commands still run in the persistent shell session and their output stays in scrollback. Choose Interact on a running command if it needs direct input.

A captured command can stop to ask a question that Termorq could not predict from the command line, for example az upgrade asking Do you want to continue? (Y/n):. When the output has been quiet for half a second and its unfinished last line ends with ? or :, or contains a choice such as (Y/n) or [y/N], the tab opens the command’s terminal so you can type the answer. With Interactive programs off, the scrollback says the command is waiting for input and Interact stays your choice.

For a local persistent shell, opening Interact reveals the same xterm that has been drawing the PTY. Its screen and cursor carry over, and the pane resizes that terminal and PTY in place instead of replaying old output into a second emulator. If a newly attached PTY uses replay to rebuild its screen, replies to historical cursor-position and device-status queries are suppressed; queries from current output still receive their replies.

Output shown in the opened terminal is not kept in the scrollback. When the command exits with a code other than 0, Termorq writes its last 20 lines from the terminal above exit N, so you can see why it failed. Secrets and answers typed after a password prompt are masked. When nothing was printed, a code with a fixed meaning is still explained, for example 127 (command not found) or 137 (stopped by signal SIGKILL). A successful command and Ctrl+C add nothing.