There are a lot of cmd properties which is possible to edit there is some which I don't know how to edit. If you go to console properties there are properties from "Terminal" tab: https://devblogs.microsoft.com/wp-content/uploads/sites/33/2019/02/Experimental-settings-600x335.png. I know how to edit them through console properties but I want do it programmatically using C#. Especially I want to change CursorShape property.
I tried to do it through registry but even didn't found this property.
Cursor.Size is not what I'm looking for. It should look like: https://devblogs.microsoft.com/wp-content/uploads/sites/33/2019/02/Experimental-cursor-vertical.png
EDIT: Also found this script on batch but how to do it using c#? change the font and size of the text in a batch file
EDIT2: Made something like I want, but how to do it without flickering?
public static void SetCursorShape(int shape)
{
Registry.SetValue("HKEY_CURRENT_USER\\Console", "CursorType", shape);
Native.FreeConsole();
Native.AllocConsole();
}
I mean how to apply properties without reallocating console?