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

Enable OSC 7 when running in WezTerm #7649

Merged
merged 1 commit into from Jan 23, 2021
Merged

Enable OSC 7 when running in WezTerm #7649

merged 1 commit into from Jan 23, 2021

Conversation

wez
Copy link
Contributor

@wez wez commented Jan 23, 2021

Over in wez/wezterm#115 (comment) one of my users noted that fish had automatic OSC 7, but that it wasn't enabled under WezTerm.

You can detect WezTerm through the $TERM_PROGRAM environment. In practical terms, all versions of wezterm in the wild support OSC 7 so a version check is not needed.

I'm not a fish user myself, but I did give the equivalent change to this a try on my Fedora 33 machine (it has an older version of fish).

I can see in this file that there's some stuff with __fish_enable_focus that you may also want to enable under wezterm; the escape sequence is supported as are panes, tabs and windows.

Over in wez/wezterm#115 (comment) one of my users noted that fish had automatic OSC 7, but that it wasn't enabled under WezTerm.

You can detect WezTerm through the `$TERM_PROGRAM` environment.  In practical terms, all versions of wezterm in the wild support OSC 7 so a version check is not needed.

I'm not a fish user myself, but I did give the equivalent change to this a try on my Fedora 33 machine (it has an older version of fish).

I can see in this file that there's some stuff with `__fish_enable_focus` that you may also want to enable under wezterm; the escape sequence is supported as are panes, tabs and windows.
@faho faho added this to the fish 3.2.0 milestone Jan 23, 2021
@faho faho merged commit 4b01525 into fish-shell:master Jan 23, 2021
@faho
Copy link
Member

faho commented Jan 23, 2021

Merged, thanks!

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jul 22, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants