I have retarget fgets() and fputs() to ITM_ReceiveChar and ITM_SendChar.
When i test fgets() to get a string form Debug View, i find i can not input a new line charater (0x0A). Push "Enter" just send 0x0D, not 0x0A.
How input a new line char form Debug View?
Note that there isn't actually any such thing as a newline character:
There's Line-Feed (LF) and Carriage-Return (CR), and different systems use CR and/or LF to mark the position of a newline - but there is no specific newline character as such.