Add basic windows support.

Construct the window's tty handle and set the necessary console modes.
6 jobs for windows-support in 9 minutes and 8 seconds (queued for 9 minutes and 3 seconds)
Status Job ID Name Coverage
  Build
passed #6687
build:beta

00:01:28

passed #6688
build:nightly

00:01:30

passed #6686
build:stable

00:01:30

 
  Test
passed #6690
test:beta

00:01:35

passed #6691
test:nightly

00:01:31

passed #6689
test:stable

00:01:33