Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improved shell integration #793

Open
christianparpart opened this issue Aug 25, 2022 · 0 comments
Open

Improved shell integration #793

christianparpart opened this issue Aug 25, 2022 · 0 comments
Labels
enhancement New feature or request VT: Backend Virtual Terminal Backend (libterminal API)

Comments

@christianparpart
Copy link
Member

christianparpart commented Aug 25, 2022

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

random

@christianparpart christianparpart added enhancement New feature or request VT: Backend Virtual Terminal Backend (libterminal API) labels Aug 25, 2022
@christianparpart christianparpart changed the title Evaluate adding "OSC 777 ; preexec" and "... precmd" Improved shell integration Sep 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request VT: Backend Virtual Terminal Backend (libterminal API)
Projects
None yet
Development

No branches or pull requests

1 participant