Thread: read characters

  1. #1
    Registered User
    Join Date
    Apr 2003
    Posts
    36

    read characters

    is there a way to read input from the keyboard while the user enters it. before he presses return.

  2. #2
    Registered User
    Join Date
    Aug 2003
    Posts
    2
    getch();/*not echo what u type*/
    getche();/*echo what u type*/

  3. #3
    Code Goddess Prelude's Avatar
    Join Date
    Sep 2001
    Posts
    9,897
    getch();/*not echo what u type*/
    getche();/*echo what u type*
    A common practice on these boards is to mention when something is nonstandard and if so, specify where it can be found and on what implementations. For example, on Unix I would have a hard time figuring out how to use getche.
    My best code is written with the delete key.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. read Causes Freezing?
    By Masna in forum C Programming
    Replies: 5
    Last Post: 07-18-2008, 04:31 PM
  2. how to read each line in text??
    By rameshs in forum C Programming
    Replies: 2
    Last Post: 12-04-2006, 11:46 AM
  3. Reading a file with Courier New characters
    By Noam in forum C Programming
    Replies: 3
    Last Post: 07-07-2006, 09:29 AM
  4. Plz Tell me how to Read Characters like Key UP, Key Down
    By arvindkr in forum C++ Programming
    Replies: 4
    Last Post: 08-06-2002, 06:22 PM
  5. Need help on string read
    By Unregistered in forum C++ Programming
    Replies: 1
    Last Post: 11-08-2001, 12:23 PM