I got it to work by parsing the text and writing the password (and appending "\r\n") when requested. Only thing is that it seems a bit unreliable since one doesn't always know exactly what the request text will look like (let alone localized password requests).
Seems there should be a better way.
Seems there should be a better way.