tprintf: xutils: Move tput*_safe to tprintf.c