if((ch==127||ch==8)&&i==0)//not using '\b' since most terminals are 'cooked' (keys like backspace are handled by terminal driver) //checking for both delete and backspace.
letter_clear(adapt_to_ver_read());
elseif(ch==127||ch==8)//testing for delete of backspace
elseif((ch==127||ch==8)&&i>0)//testing for delete of backspace
{
i--;//decremting the number of characters entered when backspaced is pressed.
letter_clear(adapt_to_ver_read());//clearing the backspace printed and making sure it works with many terminal versions
while(u<=j)//counting from u to j, to find if there is a wrong character stored in the error_store array of ints.
{
if(error_store[u]==i&&wrong_letters>=0)//checking through the array for errased wrong charactes initially entered.
{
wrong_letters--;//accumulating the number of wrong letters typed
{//also ensuring before any decrement, wrong_letters>0
wrong_letters--;//decrementing the number of wrong letters.
/*if(wrong_letters<0)
puts("finally got a case\n");*/
break;//Ensuring that immediately there is a match, the while loop is escaped for speed.