Hello, guys!

I have a question for you, how could I implement a catch of CTRL+D? I have a program, which reads strings untill is pressed CTRL+D, and I don't wanna have ^D in a console . After I press CTRL+D I have to press ENTER, and only after that my program stops . Have any ideas?