How do I copy the last terminal result with the keyboard?
With an empty focused command field, ⌃C or ⌘C copies the most recent result without changing normal browser copy elsewhere.
When the shortcut copies output
The shortcut is intentionally contextual. Focus the lil-terminal command field, leave it empty, and press ⌃C on Windows/Linux or ⌘C on macOS. The terminal copies the last rendered command result to the clipboard. This is useful for hashes, paths, IP addresses, generated identifiers and other values that you want to reuse immediately.
What happens when the field is not empty
If the command field contains text, ⌃C keeps the terminal’s existing cancel-input behavior instead of copying an older result. Copying selected text elsewhere on the page remains a normal browser action; lil-terminal does not globally replace the operating system shortcut.
What exactly is copied
The clipboard receives the last meaningful terminal result, not the command prompt. Structured column results are copied as tab-separated text, while plain results such as a SHA-256 digest are copied as-is. Help output can also become the most recent result.
Saving instead of copying
With the command field focused and empty, Ctrl+S on Windows/Linux or Command+S on macOS runs history.log. Add Shift to run the replace form with -r. In an editor, the ordinary save shortcut keeps its editor meaning. The desktop shortcut rail shows these actions; it is intentionally hidden on mobile.
Examples
hash feed.xmlip 192.168.1.1pwdhistory -ohistory -o > history.loghistory -o > history.log -r