Mock terminal
Implementation of ask_for_credentials (still disabled using pending() )