Jeff King [off-list ref] writes:
quoted
For testing, wouldn't lib-terminal.sh be usable for your purpose?
If not, what is the reason why it is insufficient? Can we fix that
instead?
That doesn't work, because it insists on reading from /dev/tty and not
the pty that lib-terminal will set up as stdin. But...
I somehow thought that lib-terminal was a bit more complete in that
it would make the pty we allocate to the controlling terminal for
the process that runs the test program. Sigh.