config tty setting