Alright so for this project, I have to write a program that allows the user to enter text into the terminal window, output something based on what they inputted, and keep looping until the user chooses to stop.
I have the first part finished no problem, but the way the user has to end the program is to hit CRTL + D on the keyboard at the start of a text entry.
I have a basic idea of how to do it, but I don't know how to exit the program after the user hits CTRL + D. Can anyone help?
I have the first part finished no problem, but the way the user has to end the program is to hit CRTL + D on the keyboard at the start of a text entry.
I have a basic idea of how to do it, but I don't know how to exit the program after the user hits CTRL + D. Can anyone help?
Comment