fix problems with text-mode ports on Windows

Closes PR 14198

Merge to v6.0
racket/gui cocoa: fix flipped drawing for `combo-field%` content

This was another bug in 9cb646bbd2.