This page explains how to configure some popular terminal programs for correct display of newlines when using the serial interface of a RIOT powered device. When printing something using stdio (e.g., printf("Hello World!\n");
, RIOT sends a line feed character (0xA
) as \n
(newline).
Some terminals need more, for example, a carriage return and a line feed character (0xD, 0xA). See https://en.wikipedia.org/wiki/Newline for background.
This page tries to collect needed settings for common terminal programs that will make them correctly display newlines.
~/.gtktermrc
.True
.~/.minirc.dfl
per default).--eol CR
parameter.RIOT_TERMINAL=miniterm make term
--imap lfcrlf
parameter.RIOT_TERMINAL=picocom make term
Terminal
branch.Implicit CR in every LF
.