Hide most of the Unicode support in tty's top line manipulation. The new code is somewhat fragile, but the clutter from the many instances of #if UNICODE_WIDEWINPORT was making it difficult to work on some other changes.