You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
According to the documentation for SetConsoleTitle, when the process terminates the original title is restored. When running yori however, the title is not being restored.
The documentation in SetConsoleTitle is obviously wrong, which your program demonstrates. It never was the case that SetConsoleTitle is specific to a process. It's just that the shell may choose to alter the text later whenever it feels like it.
Yori gives you the choice: if you set the title via ytitle.exe, it's just arbitrary text set at some point in time that lasts until something changes it. If you set it via %YORITITLE%, it gets re-evaluated before each command. This allows the title to be highly dynamic, invoke child processes, etc. Obviously this behavior is more computationally expensive, but I assume it's what things like CMD are implicitly doing anyway.
According to the documentation for SetConsoleTitle, when the process terminates the original title is restored. When running yori however, the title is not being restored.
The text was updated successfully, but these errors were encountered: