Repository :
https://github.com/FarGroup/FarManager
On branch : master
Link :
https://github.com/FarGroup/FarManager/commit/8cc6c7c139b3197e5a5ff8b3fe119f60baeb6c0c
>---------------------------------------------------------------
commit 8cc6c7c139b3197e5a5ff8b3fe119f60baeb6c0c
Author: Alex Alabuzhev <
alab...@gmail.com>
Date: Wed Oct 1 00:35:59 2025 +0100
gh-1018: Cursor is missing when first console command is run with echo off
>---------------------------------------------------------------
8cc6c7c139b3197e5a5ff8b3fe119f60baeb6c0c
far/console_session.cpp | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/far/console_session.cpp b/far/console_session.cpp
index 52e3ab9da..2d6fa3596 100644
--- a/far/console_session.cpp
+++ b/far/console_session.cpp
@@ -101,6 +101,8 @@ void console_session::activate(std::optional<string_view> const Command, bool co
// BUGBUG, implement better & safer way to do this
SCOPE_EXIT{ Global->ScrBuf->SetLockCount(LockCount); };
+ SetInitialCursorType();
+
Global->ScrBuf->Flush();
console.SetTextAttributes(colors::PaletteColorToFarColor(COL_COMMANDLINEUSERSCREEN));
@@ -108,7 +110,6 @@ void console_session::activate(std::optional<string_view> const Command, bool co
scroll(margin(NewLine, true));
MoveRealCursor(0, ScrY - (Global->Opt->ShowKeyBar? 1 : 0));
- SetInitialCursorType();
command(Command);