I have a simple C program that I am using to using to understand pseudo terminal programming. What I do is open a Pesudo TTY pair, then fork the program and the child calls Bash using the system call. The program work with a few undesirable features. They are:
I tried copying the termios from stdin to the pseudo termios, but that did not fix the problems.
- Needs a CR before reading. Running top, enter 'q', does not stop until I hit CR.
- Password request not blanked.
- Up arrow not echoing last command, it executes it after CR.
The source can be found at: http://22.214.171.124/_Examples_/PseudoTTY
Any help would be apperciated. Thanks for your time.