Alternative to "luit" which is available via homebrew
You can install XQuartz as a binary from http://xquartz.macosforge.org. It's the de facto standard X11 for OS X. It comes with luit and all the normal X11 stuff. 

Homebrew does not have an X11 installer; it expects you tu use XQuartz, and will compile against it when it is present.

You could also use AppleScript to programmatically change your Terminal settings instead of doing it manually.