Thursday, May 12, 2005
Mental Decline
The "typos" below are good examples of my mental decline. I don't
know how much more time I have.
---------- Forwarded message ----------
From: John Mudd
Date: May 8, 2005 11:03 PM
Subject: pexpect timing issue
To: noah
I;, enjoying pexpect. I hope the following is helpful to you. I've
available to discuss if it will help.
Re: It is sometimes possible to read an echo of the string sent with
send() and sendline().
I've worked on something like this in the past. In case you're
interested, I added an alternative to send() called echo(). It sent
data like send() but read the echo back. I even added a flexible
"type ahead" parm so that I would only send N chars before expecting
to receive the echo. Without waiting I sometimes ran into problems
where I flooded the app, basically acting like a human with infinite
typing speed. And if I waited for each char to be echoed before going
to the next char then the rate was too slow. Limiting the type ahead
to about 10 chars worked well for my applications.
John