FarManager: Console buffer does not redraw (OpenConsole bug?)
Far Manager version
3.0.6183.0
OS version
10.0.19045.3324
Other software
OpenConsole.exe
v1.14.1432.0 or newer.
And these macros
-- Buffer: scroll with plain keys when Panels are hidden
local function inUserScreen()
return not APanel.Visible or Area.Desktop
end
Macro {
area="Shell"; key="Up";
condition=inUserScreen;
action=function()
Far.Window_Scroll(-1)
end;
}
Macro {
area="Shell"; key="Down";
condition=inUserScreen;
action=function()
Far.Window_Scroll(1)
end;
}
Macro {
area="Shell"; key="PgUp";
condition=inUserScreen;
action=function()
Far.Window_Scroll(-Far.Height)
end;
}
Macro {
area="Shell"; key="PgDn";
condition=inUserScreen;
action=function()
Far.Window_Scroll(Far.Height)
end;
}
Steps to reproduce
- Download some fresh Windows Terminal release, and extract single
OpenConsole.exe
. - Launch
OpenConsole.exe far.exe
with single macro file installed. - Make sure that console buffer is big, and fill the buffer with something like
dir /s
. - Hide panels with Ctrl-O and play with <kbd>Up</kbd> and <kbd>Down</kbd>, just to make sure that all works as expected - buffer scrolling is ok.
- Now try <kbd>PgUp</kbd> / <kbd>PgDn</kbd> - and observe the bug: the buffer content is not refreshed after scrolling.
- Press e.g. <kbd>F10</kbd> and observe that buffer gets at last refreshed.
Expected behavior
- v1.14.1432.0 - the first “bad” version
- v1.13.11431.0 - the last “good” version
And even v1.13.11431.0
performs worse than conhost.exe
.
- conhost reacts on <kbd>PgUp</kbd> immediately
- OpenConsole
v1.13.11431.0
: reacts after small delay (though I did not try to track it down to earlier versions)
P.S.
It would be interesting to try it with conhost.exe
in Windows 11 as well, but I have no one.
@yegor-mialyk?
Actual behavior
Apparently this is bug in Windows Terminal code, so why I report it here?
- To confirm that it is reproducible
- And because i do not have enough competence to explain the bug without mentioning Far Manager, Lua macros, etc. I hope @DrKnS can help me with this.
- And it also possible to find some workaround, to force redraw console.
About this issue
- Original URL
- State: closed
- Created 10 months ago
- Comments: 22 (22 by maintainers)
Commits related to this issue
- Workaround for gh-727 and related minor fixes — committed to FarGroup/FarManager by alabuzhev 10 months ago
They did. You can find a fixed OpenConsole in WT nightly builds.
Although ok, let’s try. I hope it won’t break any old workarounds for other Win10 bugs.
https://github.com/microsoft/terminal/issues/15932