Thread: own version of getch();

  1. #1
    Registered User linuxdude's Avatar
    Join Date
    Mar 2003
    Location
    Louisiana
    Posts
    926

    own version of getch();

    I remember somewhere on the forums either Salem or Prelude said that you could make you own ANSI getch(); but it was a big learning curve. I was wondering if anyone could give me a couple of hints on how to do this. Thanks

  2. #2
    Senor Member nomi's Avatar
    Join Date
    Jan 2004
    Posts
    129
    I would like to know that coz my getch doesnt work, i think my compiler is screwed up...so it getc();

  3. #3
    Code Goddess Prelude's Avatar
    Join Date
    Sep 2001
    Posts
    9,897
    >I remember somewhere on the forums either Salem or Prelude said that you could make you own ANSI getch(); but it was a big learning curve.
    It was probably me. I also mentioned that getting to the goal results in you learning a lot. Of course, if you need it now, one solution is in the FAQ.
    My best code is written with the delete key.

  4. #4
    Senor Member nomi's Avatar
    Join Date
    Jan 2004
    Posts
    129
    So if i ever to make a function --- getch(); --- i would be learning a lot about C?

  5. #5
    Registered User
    Join Date
    Jan 2004
    Posts
    26
    Actually, I would think you'd be learning a bit about assembly, since you'd probabaly be reading from the keyboard buffer. Then again I'm hardly experienced with C and the only assembly I've done is some 6502 for the NES, so I may be wrong.

  6. #6
    Registered User Draco's Avatar
    Join Date
    Apr 2002
    Posts
    463
    I don't know for sure on this but I think there's some sort of union or something similar to with video memory that you can utilize without having to go to assembly.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Problem building Quake source
    By Silvercord in forum Game Programming
    Replies: 16
    Last Post: 07-11-2010, 09:13 AM
  2. Another syntax error
    By caldeira in forum C Programming
    Replies: 31
    Last Post: 09-05-2008, 01:01 AM
  3. No Version info tab in file properties?
    By cpjust in forum Windows Programming
    Replies: 2
    Last Post: 06-03-2008, 03:42 PM
  4. Pls repair my basketball program
    By death_messiah12 in forum C++ Programming
    Replies: 10
    Last Post: 12-11-2006, 05:15 AM
  5. How to set File Version of VC++ 6 dll
    By mercury529 in forum Windows Programming
    Replies: 3
    Last Post: 12-08-2006, 02:49 PM