broot: Windows (cmd.exe): second tab slows down the whole display
When I open up a second tab the display begins to flicker whenever the selection changes. This flickering affects the whole display in both tabs.
It seems that the right tab is always drawn whenever a selection changes, also when the selection change is in the left tab. The left tab draws always the selected line over (!) the right tab and then the right tab draws again over it, the result is right but it flickers.
Changing the selection from line to line by just pressing <Up> or <Down> is remarkable slower with two open tabs than with only one tab.
About this issue
- Original URL
- State: open
- Created 4 years ago
- Reactions: 1
- Comments: 18 (10 by maintainers)
broot 0.18.4 released. I’ll wait for you @dogancelik and @muellerto to tell me whether it’s good enough or not.
Ok, there’s a big problem on windows (and the title of this issue doesn’t really fit anymore).
There’s a small probability that the new version on master alleviates it.
But I can’t really make a new release every time I want to try something on Windows. I’d need somebody who can fetch the repo on Windows, compile and test. And preferably synchonize on Miaou (in French or English).
As I already told you cmd.exe has absolute nothing to do with this issue. cmd.exe has not even an own window or any other GUI component, cmd.exe is just a command line shell like bash. It would be a step into the right direction if you could understand and respect this.
Even better: cmd.exe must not have been started before broot, broot can (like every other command line application) run completely alone on Windows, with no shell underneath. Then cmd.exe isn’t involved at all, but broot behaves exactly like I described it. And that’s no wonder.
I told you the reason: your application draws too much. It overwrites its own contents on the screen, two times, that’s why it flickers. An attentive user can see it while it happens, I described that all in my very first posting (“It seems …”). I’m sure this is also the case on other OS, perhaps it’s not everywhere visible.
Pwsh seems to be part of PowerShell 6. It’s until now not part of any Windows and not installed by default. I named the terminal zillions of Windows users get installed by default.
Of course I could run something else and indeed I do this. Normally I use ConEmu (with
cmd.exein it) and that’s fine. But ConEmu interprets ANSI-color-codes himself and I don’t want to change that for a single application. I have others (likels.exeandntop.exe) which I want to have in colors. This seems to be the reason why broot is not able to show its selection in a ConEmu window. You see all the dirs and files in colors and the program does react but you don’t know where you are because you navigate blind. I didn’t report this because ConEmu is not standard, The standard is the common Windows command prompt.BTW: I tried to switch off coloring (just for a test in ConEmu) using
--no-styles: this did nothing. The broot instance started with--no-styleshad all styles and colors just like without--no-styles.