connection: Reenable correct detection of pseudo-prompts.

b11337 stopped the false positives, but the buffers would never be empty at
the time textread() gets called. Clearing the buffers prior to chaining solves
this, albeit not very tidily.