terminfo: hex only on macosx.
terminfo: cleaner, use %c on linux.