Ok, ali mislim da on nije to hteo...
Potrazi ovde sta ti treba Waljda:
http://en.wikipedia.org/wiki/Conio.h
Ima gomila funkcija koje bi ti dobro dosle. Iako dobijes strelicu na levo sa putcharom, to nije kod za strelicu na levo, vec za escape.
Waljda, ako te mrzi da trazis, nasao sam jedan kod na jednom forumu:
Code:
#include <stdio.h>
#include <conio.h> /* needed for kbhit and getch */
#include <ctype.h> /* needed for isprint */
int main()
{
int ch;
ch = -1;
while (ch != 0x1B) /* watch for an ESC */
{
if (kbhit()) /* check for a keystroke */
{
ch = getch(); /* get the key */
printf("%02X", ch);
if (isprint(ch)) printf("/%c", ch);
if (ch == 0) /* if it's 0... */
{
ch = getch(); /* get the next key */
printf(" %02X", ch);
if (isprint(ch)) printf("/%c", ch);
}
printf("\n");
}
}
return 0;
}
Srecno.