Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Autoconvert CR to CR+NL and NL to CR+NL (Return NewLine) #377

Open
morfeus2 opened this issue Mar 13, 2024 · 0 comments
Open

Autoconvert CR to CR+NL and NL to CR+NL (Return NewLine) #377

morfeus2 opened this issue Mar 13, 2024 · 0 comments

Comments

@morfeus2
Copy link

I tried to look in other issues, docs, discussion but did not find anything relevant. I think that this could be of general use and I'm surprised that up to now nobody seems have asked for it.
Could you add few options in the configuration screen (one set for keys coming from keyboard and another identical for keys coming from serial port)?

CR-off -> as it is now
CR-on -> every time a CR is received it adds a NewLine

NL-off -> as it is now
NL-on -> every time a NL is received it adds a Return

I looked a bit and maybe I could hard-code it, but I am not sure exactly where to touch and furthermore, this would mean to have a local modified copy of the library, that is not an optimal solution.
If you think that adding options to the configuration is not a good idea for some reason, another, less universal solution, could be to implement some switch that can be selected from the .ino application (eg. AnsiTerminal.ino) when the terminal is first open.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant