Thread: Bypass having to hit Enter after getch

  1. #1
    Registered User
    Join Date
    Sep 2010
    Location
    Boston, MA
    Posts
    97

    Bypass having to hit Enter after getch

    So I was wondering if there is a way to bypass having to hit enter after scanning or using getch to get a character. I have been looking around online and all the code I found is not standard C which is what i wish to use.

  2. #2
    Registered User
    Join Date
    Dec 2007
    Posts
    2,674
    Cprogramming.com FAQ > How can I get input without having the user hit [Enter]?

    There is no standard way, as mentioned in that FAQ.

  3. #3
    Third Eye Babkockdood's Avatar
    Join Date
    Apr 2010
    Posts
    352
    getch isn't a standard function. If you're on Windows, you can use getch from conio.h, or if you're on Unix, you can use getch from the ncurses library.
    Quote Originally Posted by The Jargon File
    Microsoft Windows - A thirty-two bit extension and graphical shell to a sixteen-bit patch to an eight-bit operating system originally coded for a four-bit microprocessor which was written by a two-bit company that can't stand one bit of competition.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Need help in C programming (too lazy)
    By cwillygs in forum C Programming
    Replies: 12
    Last Post: 04-20-2010, 12:23 AM
  2. c program help :>
    By n2134 in forum C Programming
    Replies: 9
    Last Post: 02-06-2010, 12:12 PM
  3. printf statement executed twice
    By ananddr in forum C Programming
    Replies: 4
    Last Post: 05-07-2009, 12:17 AM
  4. terminate 0 - PLEASE HELP
    By Unregistered in forum C Programming
    Replies: 11
    Last Post: 11-21-2001, 07:30 AM
  5. Desperate for help - ugly nested if
    By baseballkitten in forum C Programming
    Replies: 4
    Last Post: 11-19-2001, 03:56 PM