Thread: Moving cursor without pressing enter

  1. #1
    Registered User
    Join Date
    Mar 2004

    Question Moving cursor without pressing enter

    Is there a function (like getch) which I can use, so when I move the cursor, like -> (to move right) an action occurs without pressing the enter key? Thanks!

  2. #2
    Registered User Codeplug's Avatar
    Join Date
    Mar 2003
    non-standard console programming in Windows: read this tutorial
    non-standard console programming in *nix: NCURSES (or curses)


  3. #3
    Registered User kinghajj's Avatar
    Join Date
    Jun 2003
    or, if your compiler has an inline assembler, you can use some assembly language to do the trick; however, that is platform-specific, so it's not the best choise

  4. #4
    Its not rocket science vasanth's Avatar
    Join Date
    Jan 2002
    well this is not a standard method.. but i had done this in console using BGI graphics.... I had a continous loop which checked the position of the mouse (x and y) when the mouse was in a particular area i would call a function to do somehting.. You can work something out on these lines.. But its resource hungry since the loop will be continously checking for the position of the mouse.........

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Need Help With a BlackJack Program in C
    By Jp2009 in forum C Programming
    Replies: 15
    Last Post: 03-30-2009, 10:06 AM
  2. Assignment output help
    By Taka in forum C Programming
    Replies: 13
    Last Post: 09-23-2006, 11:40 PM
  3. cin, but without pressing enter?
    By Queatrix in forum C++ Programming
    Replies: 6
    Last Post: 04-08-2005, 10:13 PM
  4. hi need help with credit limit program
    By vaio256 in forum C++ Programming
    Replies: 4
    Last Post: 04-01-2003, 12:23 AM
  5. terminate 0 - PLEASE HELP
    By Unregistered in forum C Programming
    Replies: 11
    Last Post: 11-21-2001, 07:30 AM