First attempt at making plc-config-tty more general so it can be used