Sending enter using serial.print()

Does anyone know how to send the "enter" key using serial.print like as if the enter key was pressed on a keyboard?

For example:

serial.print(enter key)

I'm not sure how to do this. Thanks in advance. :slight_smile:

The enter key is usually a carriage return, this is sent as follows:

Serial.print('\r');
or
Serial.print((char)13);

dont know exactly what your goal is or if you already know this mkub, but

serial.println(); //should do the same thing