support tty config save/load