how can i write tty with color?