.net - Is it possible to disable System.Console XOFF/XON flow control processing in my C# app? -
I am the developer of the console-based server software, sometimes it takes up until the input is locked until the key is pressed Pets. I suspect that this system has XOFF / XON (Ctrl-S / Ctrl-Q flow control) handling. Console windows.
Is it possible to disable XOFF / XON (using net call or Win32 API functions) in my C # /? Flow control processing in .NET applications which is the system for output and input commands. Uses the console? (It also affects other system consoles like CMD.EXE window, but I do not care about those cases.) My app is server software; Never want any key that prevents the console, especially, which can start with a mistake, as it appears.
Either way I believe that my server is getting a Ctrl-S on the app console input or it is thought that the Ctrl Qualifier is pressed when S is entered. Unless I hit Enter, the console locks (I'm thinking that Control-A might have released it, but there is no other chance of testing it yet.)
My processes C # servers are on the Senate, and they are comforting using the system. Console .ReadLine () is running Windows Server on Hyper-V VMs.
This problem may be important for the reason: I'm connecting via Hyper-V host Remote Desktop (RDP). One idea is that the disconnected RDP is losing a Ctrl key and then the next 's' input (by our command automation software) locks the terminal, we eventually replace the network-based command input, but during this time we Are fighting with this problem, which requires manual intervention by employees to run again on the server.
Further information: I tried the following, if this quick editing mode was triggered by a PDP session from a tablet, but it did not lock the lockup:
GetConsoleMode (old modered out); Int newmode = oldmode; Newmode | = ENABLE_EXTENDED_FLAGS; // the next two new modes & amp; = ~ ENABLE_QUICK_EDIT_MODE is required to be disabled; // Close it newmode & amp; = ~ ENABLE_MOUSE_INPUT; // Close it newmode & amp; = ~ ENABLE_WINDOW_INPUT; // Close force newmode | = ENABLE_INSERT_MODE; // Force it (newmode! = Oldmode) {SetConsoleMode (Handle, Neemode);
Comments
Post a Comment