simply store the commands in a file when they are executed... and retrive them when user preses arrow keys.. to detect pressing of keys use following function:
void getkey()
{
union REGS i,o;
i.h.ah=0;
int86(22,&i,&o);
scan=o.h.ah;
ascii=o.h.al;
}
if(ascii==0 && scan==72) //UP key
if(ascii==0 && scan==80) //down key
|