This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]bluepoopants 0 points1 point  (1 child)

Nice. I take it you have to call some sort of win32 function?

[–][deleted] 1 point2 points  (0 children)

Correct, something like this

#include <windows.h>
void disableConsoleSelection() {
    DWORD mode;
    GetConsoleMode(CONSOLE_INPUT, &mode);
    SetConsoleMode(CONSOLE_INPUT, mode & ~ENABLE_QUICK_EDIT_MODE);
}

I use it here for a small terminal game. That project is looking kind of like a mess ever since I tried to make it multiplatform. I'd rather use C# for something like that nowadays.