Hi group,

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:
  1. Needs a CR before reading. Running top, enter 'q', does not stop until I hit CR.
  2. Password request not blanked.
  3. Up arrow not echoing last command, it executes it after CR.
I tried copying the termios from stdin to the pseudo termios, but that did not fix the problems.

The source can be found at: http://64.124.13.3/_Examples_/PseudoTTY

Any help would be apperciated. Thanks for your time.