You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
The reason will be displayed to describe this comment to others. Learn more.
Why did you decided to do this? Formatting is alright in Arduino IDE, but in screen or putty it is completely unusable. edit: Can you instead add '\r'? It should be more pleasant.
The reason will be displayed to describe this comment to others. Learn more.
If I understand you right, your problem is that you need \r\n instead of just \n.
(A proper issue would be better than commeting some commit, but whatever 😃 )
1bf741d
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why did you decided to do this? Formatting is alright in Arduino IDE, but in screen or putty it is completely unusable.
edit: Can you instead add '\r'? It should be more pleasant.
1bf741d
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The description had a linebreak at the beginning and the end. It was repetitive, so I removed one.
1bf741d
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am fighting with it right now.
Serial.println("cmd1\r\ncmd2\r\n Description");
makes ->But Serial.println(cli.toString()); makes ->
1bf741d
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If I make
cmd2.setDescription(" Description");
to a ->cmd2.setDescription(" Description\r");
it helps. So I think the issue is somewhere there.1bf741d
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If I understand you right, your problem is that you need
\r\n
instead of just\n
.(A proper issue would be better than commeting some commit, but whatever 😃 )
Try out this branch: https://github.com/spacehuhn/SimpleCLI/tree/linebreak
1bf741d
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry, I saw the commit and I had a question, for me not worth mentioning in the issues. But thanks for the directions.
1bf741d
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Did it fix your issue?