-
Notifications
You must be signed in to change notification settings - Fork 182
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
We should add a tutorial for using OSC9;9 #285
Comments
Part of me feel "finally, about time" but another part of me feel "maybe the doc from ConEmu is good enough?" But generally I think we need a guide to point people at, even it just points to ConEmu doc instead. |
I don't think we can point at the ConEmu docs because they sometimes rely on either Even the zsh option, which uses a zsh-native plugin, might not work if that plugin is internally checking for ConEmu before activation. |
I got a solution for powershell from some github issue. (There are so many issues related to this!) I can't remember exactly which. It basically added "Write-Host "$esc]9;9;`$pwd.ProviderPath`"$esc" -NoNewline" after the prompt. This fix works, but for some reason my WT crashes. I didn't know it was because of this, but I've commented out this fix for two days and it hasn't crashed yet. Whereas with this fix included, WT crashed twice/thrice a day. |
@3N4N: Try putting If that doesn't fix it, still open a new bug report for WT crashing, otherwise it'll just get lost in the comments on this issue. |
@TBBle, I started using the preview build of WT and it hasn't crashed yet, without having to escape after And what's this missing terminator? I'm asking because when I use In fact, would you mind sharing your prompt config? That would be much easier for me. |
It's almost certainly because of the missing terminator. The OSC 9;9 string is Without the ST, Windows Terminal has to guess where the string ends. Since your prompt ends in The reason I'm curious about the crash is that it suggests either: Sometimes the next command is one that crashes WT (bad), or that sometimes the next thing makes it look like it's not a command, and so WT takes a lot of the following data as the working directory and crashes, perhaps because it's too long (also bad). But without a clear repro case (which as I mentioned, should be in a new bug so we can track it separately from the documentation work), I'm just guessing. My configuration probably won't help you, since I'm using PowerLine, but you probably want something like microsoft/terminal#3158 (comment) or microsoft/terminal#3158 (comment). |
I actually had your suggestion in my config. I got it from ConEmu IIRC. if ($env:WT_SESSION) {
if ($loc.Provider.Name -eq "FileSystem") {
$out += "$([char]27)]9;9;`"$($loc.Path)`"$([char]7)"
}
} But the grep issue persists. Same result with the other solution Result of your prompt suggestion:
Result of LuanVSO's prompt suggestion:
|
Depending on your Git For Windows setup, I wonder if it's disabling VT processing when I'm also unsure why It didn't replicate for me, so perhaps your Git needs upgrading, if it's too old (technically, using a too-old cygwin) to handle Windows VT support correctly. If you're still having issues, I really really really suggest opening a new ticket describing your problem with repros and configs, as the last few OSC 9;9 feature tickets have drowned in support discussion. |
@TBBle, got a crash right now in WT preview. Not from pwsh, though. I started using cmd with osc9;9 string. Does WT save any log somewhere? |
The WT Bug Report template should guide you in the right direction for submitting crash logs, etc. |
Kinda like setting the tab title. How you use it varies based on the shell used. Plus, you must use
duplicateTab
or theduplicate
splitPane
mode. People have had issues with it everywhere: microsoft/terminal#8330 (comment), microsoft/terminal#3158, et. al. It'll be easier just to have a doc to point people at.The text was updated successfully, but these errors were encountered: