Add basic windows support.

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

01:28

passed #6694
build:nightly

01:27

passed #6692
build:stable

01:36

 
  Test
passed #6696
test:beta

02:08

passed #6697
test:nightly

02:09

passed #6695
test:stable

02:20