Figured out a way to halt input by injecting a print statement to make the readline operation to work.

This is not necessarily the best way to handle it, but it might be the only way to do it.

Looking for suggestions.

SFH