lovely lovely tty functions