Neat trick. I haven't see this before. How about more simply though, `xterm -version`?