Skip to content

Configure terminal programs for correct display of newlines

Oleg Hahm edited this page Feb 25, 2016 · 2 revisions
Clone this wiki locally


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 for background.

This page tries to collect needed settings for common terminal programs that will make them correctly display newlines.


Start with --imap lfcrlf parameter.


  • Graphical method:
    • Open the configuration menu
    • Click on 'CR LF auto'
  • Manual method:
    • Edit the file ~/.gtktermrc
    • Change value of crlfauto option to True