I'm testing out pipes and have hit a little road block.
I want to be able to simulate pressing the right arrow key through a file pointer opened by popen. The file pointer opens a display program on a different terminal, much like a projector. I would like to send a signal to advance the next image (the right arrow key).
How do I go about sending this signal? I realize this will be specific to my computer (BOIS/keyboard setup), but I'm not looking for this to be portable in anyway.
It seems from my trials, everything I send via fprintf is interpreted as readable characters rather than special codes.
The slideshow program cannot be changed, so that isn't an option. Any direction would be greatly appreciated.