contour icon indicating copy to clipboard operation
contour copied to clipboard

Improved shell integration

Open christianparpart opened this issue 3 years ago • 0 comments
trafficstars

FinalTerm's shell integration: "OSC 133 ; ..."

OSC 133 ; A ST - Mark prompt start.
OSC 133 ; B ST - Mark prompt end.
OSC 133 ; C ST - Mark pre-execution.
OSC 133 ; D [; <exitcode>] ST - Mark execution finished with an optional exit code.

See: https://code.visualstudio.com/docs/terminal/shell-integration#_final-term-shell-integration

iTerm2 shell integration

OSC 1337 ; CurrentDir=<Cwd> S
OSC 1337 ; SetMark ST

VScode (/xterm.js?)

OSC 633 ; A ST - Mark prompt start.
OSC 633 ; B ST - Mark prompt end.
OSC 633 ; C ST - Mark pre-execution.
OSC 633 ; D [; <exitcode>] ST - Mark execution finished with an optional exit code.
OSC 633 ; E ; <commandline> [; <nonce] ST - Explicitly set the command line with an optional nonce.

See: https://code.visualstudio.com/docs/terminal/shell-integration#_vs-code-custom-sequences-osc-633-st

Enlightenment's shell integration

OSC 777 ; preexec ST
OSC 777; ... precmd ST

found out about it randomly

Windows Terminal

Seems to at least support FinalTerm's VT sequence extensions

See

  • https://devblogs.microsoft.com/commandline/shell-integration-in-the-windows-terminal/
  • https://github.com/microsoft/terminal/issues/3121

random

  • desktop notifications: https://gitlab.freedesktop.org/terminal-wg/specifications/-/issues/13

christianparpart avatar Aug 25 '22 21:08 christianparpart