How to take user input return key?
So i am trying to make a talk program with vim. And i want to know how to take the return key input from the user and then let the program continue. I am doing this on a mac in Terminal btw.
Code:
#include <stdio.h>
main int()
{
char name
prinft("What is your name?");
scanf("%c", &name);
printf("Hello %c, how are you?", name);
//then here i want to let the program only continue when the user has input the return key
//for example the user can say: I am doing fine "return key"
//and then the program continues
printf("I am happy you are doing well, goodbye");
return 0;
}
Thanks!