      
     if (inpint != IAC)  
     {
-      C64Serial.print("Received inpint=");
-      C64Serial.println(inpint);
-      C64Serial.println("End of IAC Negotiation");
       return;   // Let Terminal mode handle character
     }
     

  }
  else
  {
    display2("Wi-Fi \nFailed!");
  }
}
  

    display2("Connection closed");
}

void CheckTelnet()     //  inquiry host for telnet parameters / negotiate telnet parameters with host
{
  int inpint, verbint, optint;                         //    telnet parameters as integers
