I'm working on my library in Rust for making GUIs in terminals using Windows API.
While I implemented getting and setting the console mode, I noticed that for input mode the default value is 503. I went to check the documentation for the flags, but there are no values 128 and 256 documented, without which you can't get 503.
Either way, they are enabled by default, as said in the documentation:
When a console is created, all input modes except
ENABLE_WINDOW_INPUT
andENABLE_VIRTUAL_TERMINAL_INPUT
are enabled by default.
Which, when included with 128 and 256, evaluates to 503, the value I'm getting!
Are these two flags a thing of the past that Microsoft just doesn't want to remember? What was/is their function?
I've been already looking through the Internet, but couldn't find any remarks about the two flags missing from the documentation.