My fork of https://www.codeproject.com/articles/20781/terminal-control-library-c-vt100-ansi-xterm-ssh-te