-
Notifications
You must be signed in to change notification settings - Fork 9.1k
Labels
Area-UserInterfaceIssues pertaining to the user interface of the Console or TerminalIssues pertaining to the user interface of the Console or TerminalIssue-BugIt either shouldn't be doing this or needs an investigation.It either shouldn't be doing this or needs an investigation.Needs-Tag-FixDoesn't match tag requirementsDoesn't match tag requirementsPriority-2A description (P2)A description (P2)Product-TerminalThe new Windows Terminal.The new Windows Terminal.
Milestone
Description
Windows Terminal version
1.25.250925001-llm
Windows build number
10.0.19045.6218
Other Software
No response
Steps to reproduce
- Compile this simple program:
#include <iostream>
#include <string>
#include <windows.h>
int main()
{
for (;;)
{
std::cout << "Press Enter" << std::endl;
std::string s;
std::getline(std::cin, s);
std::cout << "\u001b]9;4;3\u001b\\" << std::flush;
Sleep(10);
std::cout << "\u001b]9;4;0\u001b\\" << std::flush;
}
}- Run it in WT
- Press Enter a few dozen times
Expected Behavior
The program uses taskbar state:
terminal/src/terminal/adapter/adaptDispatch.cpp
Line 3522 in 05a4afc
| // 4 is SetProgressBar, which sets the taskbar state/progress. |
to indicate that it is doing something.
The busy period is generally unknown: it can be tens of seconds or a few milliseconds.
The program first sets the state to "indeterminate", then resets it once the work is done.
The code above simulates such a work with a short delay of 10 (or so) ms.
The overall expectation is that in cases when the delay between 'set' and 'reset' actions is short enough, it should be (more or less) invisible to the user, because we apes are way, way slower than machines and cannot notice such minute events with the naked eye.
Actual Behavior
It was (more or less) invisible until recently:
WT 1.24.1901.0:
1.24.1901.0.mp4
Now it takes about 0.5 s at least:
WT 1.25.2371.0:
1.25.2371.0.mp4
Unfortunately I don't have binaries between 1.24.1901.0 and 1.25.2371.0 to pinpoint it more precisely.
The real world scenario: run Far in WT, visit a few directories. Every time you enter or exit a directory the tab icon disappears for about 0.5 s to show the progress circle, even though the directory listing finishes much faster than that, which is annoying.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
Area-UserInterfaceIssues pertaining to the user interface of the Console or TerminalIssues pertaining to the user interface of the Console or TerminalIssue-BugIt either shouldn't be doing this or needs an investigation.It either shouldn't be doing this or needs an investigation.Needs-Tag-FixDoesn't match tag requirementsDoesn't match tag requirementsPriority-2A description (P2)A description (P2)Product-TerminalThe new Windows Terminal.The new Windows Terminal.
Type
Projects
Status
Shipped
Status
Shipped