Key pressing

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • r1ckr011
    New Member
    • Oct 2008
    • 1

    Key pressing

    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?
  • Dököll
    Recognized Expert Top Contributor
    • Nov 2006
    • 2379

    #2
    Hey there friend!

    I got just the thing, but I am reluctant to share it because I cannot see your work. This may sound selfish, which I am not at all. Just that, we cannot do your work here for you, but if you can show us you mean business, we'll bend over backwards for you, not literaly though:-)

    Post what you have here and see what you gather from us, okay!

    Sorry for yoru troubles...

    Dököll

    Comment

    Working...