Capture password without echo only if terminal is
present