handle getpass in terminal frontend