Results 1 to 3 of 3

Thread: getch() not waiting for user

  1. #1

    Thread Starter
    Frenzied Member
    Join Date
    Jul 1999
    Posts
    1,800

    getch() not waiting for user

    Is there a function such as getch() which doesn't wait for user input? Or any type of input function that doesn't wait for user input, but just recieves it as it gets it?

  2. #2
    Monday Morning Lunatic parksie's Avatar
    Join Date
    Mar 2000
    Location
    Mashin' on the motorway
    Posts
    8,169
    You mean asynchronously?

    As in - your program keeps going, but it will collect the input data as necessary?

    That's called the input i/o buffer, and you always have one
    I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You".
    -- Linus Torvalds

  3. #3

    Thread Starter
    Frenzied Member
    Join Date
    Jul 1999
    Posts
    1,800
    such as

    while(1)
    {
    getch(); //not neseccarily this specific function
    //other functions
    }
    If no key is being pressed....I want it to skip over the getch...I don't want it to wait for the user before going to the other functions...

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width