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)
latest
Status Job ID Name Coverage
  Build
passed #6693
build:beta

00:01:28

passed #6694
build:nightly

00:01:27

passed #6692
build:stable

00:01:36

 
  Test
passed #6696
test:beta

00:02:08

passed #6697
test:nightly

00:02:09

passed #6695
test:stable

00:02:20