I typically always use \r\n when printing.
Today I used \n and nothing appears in the terminal when I do.
Works: printf(“Hello\n”);
Works: printf(“Hello\r\n”);
Does not work: works: printf(“Hello\r”);
Yet, if I open putty, or Tera Term it works fine when using \r.
Stdio flushes on newline? What happens you put fflush(stdout);
after your printf()
statement?
No change. Not sure why that would matter because as I mentioned two other terminal programs work just fine using \r.
First, thank for the help.
I saw that before requesting for help but I had many issues with try it.
I did try it again here is the result.
PS C:\Users\Jim\Documents\PlatformIO\Projects\Test> pio device monitor_eol = CR
Usage: pio device [OPTIONS] COMMAND [ARGS]...
Try 'pio device -h' for help.
Error: No such command 'monitor_eol'.
PS C:\Users\Jim\Documents\PlatformIO\Projects\ESP32-S3_OTA_UpdateFull>
No per docs that’s a platformio.ini
options. If you are looing for the the pio device monitor
command, that’s different.
Thank for the help. That took care of it.