I have found a way to send data to a console program via SendProgramString() command. However, in the console program, how do I read that string without locking the console program?
I have found the input() command, but it locks the console program.
There is also the InKey() however, it does not seem to be able to read any input from the "pipe".
How to detect stdin?
- Michael Vogel
- Addict
- Posts: 2797
- Joined: Thu Feb 09, 2006 11:27 pm
- Contact:
Re: How to detect stdin?
Sorry, where you've found the SendProgramString() - I can't see it in PB4 - maybe you've a library?Shannara wrote:I have found a way to send data to a console program via SendProgramString() command. However, in the console program, how do I read that string without locking the console program?
For piped data I use ReadConsoleData - but it seems for me that you want to transfer data when the console program is already running? Here it would be fine to know what SendProgramString() does...