Pseudo TTY not reading singal character

This is a discussion on Pseudo TTY not reading singal character within the Linux Programming forums, part of the Platform Specific Boards category; Hi group,
I have a simple C program that I am using to using to understand pseudo terminal programming. What ...

Pseudo TTY not reading singal character

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:

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.

I tried copying the termios from stdin to the pseudo termios, but that did not fix the problems.