#1 2020-05-15 14:19:47

sevo
Member
Registered: 2015-11-10
Posts: 27

Disable Quickedit Mode in the command-line Windows 10 / Server 2019

Hi Folks,

you have to disable the QuickEdit Mode in the command-line on Windows 10 / Windows Server 2019.
Else your application hangs, waiting for key-input, as soon as you click inside the window.

Solution: https://stackoverflow.com/questions/338 … windows-10

Regards,

sevo

Offline

#2 2020-05-15 16:18:00

ab
Administrator
From: France
Registered: 2010-06-21
Posts: 14,659
Website

Re: Disable Quickedit Mode in the command-line Windows 10 / Server 2019

Happy to use Linux as my main system...

But worth knowing when running the regression tests.

Offline

#3 2020-05-15 17:33:22

Vitaly
Member
From: UAE
Registered: 2017-01-31
Posts: 168
Website

Re: Disable Quickedit Mode in the command-line Windows 10 / Server 2019

In fact, this feature is useful for me smile I use it sometimes while debugging some long-term operations when I see something happened and want to pause it and read the log immediately.

Offline

#4 2020-05-15 18:44:05

mpv
Member
From: Ukraine
Registered: 2012-03-24
Posts: 1,571
Website

Re: Disable Quickedit Mode in the command-line Windows 10 / Server 2019

We disable such behavior programmatically in our app to prevent pause on mouse select. The same can be done in other apps

{$IFDEF MSWINDOWS}
var
  oldmode, newmode: DWORD;
{$ENDIF}
begin
  {$IFDEF MSWINDOWS}
  GetConsoleMode(GetStdHandle(STD_INPUT_HANDLE), oldmode);
  newmode := oldmode xor ENABLE_EXTENDED_FLAGS; // prevent pause on mouse select
  SetConsoleMode(GetStdHandle(STD_INPUT_HANDLE), newmode);
  {$ENDIF}                                                

In fact under Windows mORMot usually executed as a service, so I don't think we should add this in mORMot itself

Last edited by mpv (2020-05-15 18:46:41)

Offline

Board footer

Powered by FluxBB