Hi,for capturing arrow and function keys, as I remember, you have to use getch() twice; I mean when you press a function key, the first getch() returns a 0 and the second returns a code.
Good luck! Hamid----- Original Message ----- From: "Joseph Lee" <joseph.lee22590@xxxxxxxxx>
To: <programmingblind@xxxxxxxxxxxxx> Sent: Monday, August 30, 2010 7:41 AM Subject: RE: Capturing arrow keys and function keys during user input
Hi,That's what I've been reading about - the getch() function. Thanks for somedirections... Cheers, Joseph -----Original Message----- From: programmingblind-bounce@xxxxxxxxxxxxx [mailto:programmingblind-bounce@xxxxxxxxxxxxx] On Behalf Of QuentinC Sent: Sunday, August 29, 2010 9:04 PM To: programmingblind@xxxxxxxxxxxxx Subject: Re: Capturing arrow keys and function keys during user input Hello, To catch key press, you can use getch on windows, I don't know the linux equivalent but I'm sure it exists. To move the cursor, change color, etc. , on windows there are specialized functions (see MSDN), on linux you can send ANSI escaped sequences (wikipedia has the list) __________ View the list's information and change your settings at //www.freelists.org/list/programmingblind __________ View the list's information and change your settings at //www.freelists.org/list/programmingblind
__________View the list's information and change your settings at //www.freelists.org/list/programmingblind