Skip to content

Micropython automatically converting stdin carriage returns to newlines? #9758

Discussion options

You must be logged in to vote

Yes, MicroPython translates \r to \n (and I think this even follows how CPython works).

You can try using sys.stdin.buffer.read(1), that will not do any translation.

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@sandyscott
Comment options

@sandyscott
Comment options

Answer selected by sandyscott
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants