This example demonstrates how one might write to multiple terminals from a
single program or redirect output. In order to run the program you must
supply a single argument with is a path to a pseudo-terminal device.
This example should compile on Windows but running it may be problematic