If $DISPLAY is unset echo instead - #441874.

  If there is no display variable set then we echo the username/password
 to stdout.  This matches the documentation in the manpage.

  Reference - Debian Bug: 441874