Revert "fix for window api changes to term"

This reverts commit 1c9bbda645c339b75c85a6bec31af4dff0529669.