Hi there,
first of all, you can use a conditional statement to recognize if any of the above keys have been entered....
Code:
ch = getche();
if(ch == '\t') { /*do something*/ };
secondly, as tab, backspace, are whitespace characters you will not be able to display on the screen these characters using the conventional method of printf("%c", ch); Alternatively you could use their hexadecimal equivalent to display the character entered.
Code:
ch = getche();
if(ch == '\t') {
printf("%x", ch)
};
lastly, if your compiler fully implements the conio.h libraray you could use the function getch() instead of getche(); getch doesnot echo the input character to the display.
Code:
ch = getch();
if(ch == '\t' || ch == '\b' || ch == '\r' || ch == '\n')
{
printf("%x", ch)
};