The command completes, but then I can't read anything and keep getting null pointers instead of strings from an rl_gets().
I tried
- Code: Select all
int stdin = open("/dev/tty");
dup2(stdin,0);
in hopes of pointing standard input back to the terminal, with no success.
Am I doing something wrong with my pipe, or is there some way I can reset the in-stream?
Thanks,
Nick


