From: Johan Levin Newsgroups: comp.os.msdos.djgpp Subject: Re: arrow keys Date: Thu, 13 Nov 1997 23:40:09 +0100 Organization: - Lines: 15 Message-ID: <346B81C9.7CEE@technologist.com> References: NNTP-Posting-Host: dialup172-4-60.swipnet.se Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit NNTP-Posting-User: s-49839 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk zixyer wrote: > > this is probably a silly question, but how do you trap the arrow keys > using the standard c library? :P thanks > > -zixyer When a arrow key is pressed you get two characters from getch(). The first one is 0 end the second one is the correct code. Down 72 Right 75 Left 77 Up 80 /Johan Levin