delorie.com/archives/browse.cgi | search |
From: | Johan Levin <johan AT technologist DOT com> |
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: | <Pine DOT LNX DOT 3 DOT 96 DOT 971113162314 DOT 29788A-100000 AT shell DOT highpowered DOT net> |
NNTP-Posting-Host: | dialup172-4-60.swipnet.se |
Mime-Version: | 1.0 |
NNTP-Posting-User: | s-49839 |
To: | djgpp AT delorie DOT com |
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp |
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
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |