Before logging an issue, please update to the latest release of Visual Micro from the Downloads Page.

When Logging a Support Issue in the Forum, please ensure you have also:-

  • Enabled vMicro > Compiler > Show Build Properties
  • Re-Compile your program with these settings enabled
 
Save the new Output to a Text File and....
  • Click the Reply button and attach as .txt file OR
  • Click here to Email us with the file attached, and a link to your post
Support requests without the output above may be impossible to answer, so please help us to help you
 
Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic How to insert a carriage return at the end of a string in the Serial Window ? (Read 2018 times)
DeeJayOne
Junior Member
**
Offline


Posts: 12
Joined: Mar 28th, 2022
How to insert a carriage return at the end of a string in the Serial Window ?
Feb 12th, 2023 at 4:21pm
Print Post  
Hello  Smiley

I would like to know how to insert a carriage return at the end of a string in the Serial Window ?

PS : I have tried to add "\n" or "\\n" but it seems it doesn't work.
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: How to insert a carriage return at the end of a string in the Serial Window ?
Reply #1 - Feb 12th, 2023 at 4:36pm
Print Post  
There is a combo box in the lower part of the serial monitor that shows Line Endings. Make the window wider to easily see it.

  
Back to top
IP Logged
 
DeeJayOne
Junior Member
**
Offline


Posts: 12
Joined: Mar 28th, 2022
Re: How to insert a carriage return at the end of a string in the Serial Window ?
Reply #2 - Feb 12th, 2023 at 7:38pm
Print Post  
Thanks Tim for the answer  Smiley

I have found the right way by reading the good Help Webpage :
https://www.visualmicro.com/page/User-Guide.aspx?doc=Serial-Monitor.html

For an automatic function : Select LineFeed in the "Line end settings" combo box as you said me Tim.

For an individual feature : Check the CStr button to allow special character as in my case the \n

PS : To see all available features, don't forget to increase the size of the Serial Window.
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: How to insert a carriage return at the end of a string in the Serial Window ?
Reply #3 - Feb 12th, 2023 at 8:09pm
Print Post  
Great, Microsoft show a small button (down arrow), far right of any tool strips that don't have enough width. It's called an overflow button. If the serial monitor (tool window) is not wide enough the "overflow button" shows the remaining items.
  
Back to top
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint