mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2025-12-14 09:03:50 +01:00
1.5 KiB
1.5 KiB
title, description
| title | description |
|---|---|
| Terminal programs configuration | How to configure popular terminal programs for correct display of newlines |
Background
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 (0x0D, 0x0A). See https://en.wikipedia.org/wiki/Newline for background.
This page tries to collect the necessary settings for common terminal programs that will make them correctly display newlines.
gtkterm
- Graphical method:
- Open the configuration menu.
- Click on CR LF auto.
- Manual method:
- Edit the file
~/.gtktermrc. - Change value of crlfauto option to
True.
- Edit the file
minicom
- Interactive method:
- Press Ctrl+A u.
- Manual method:
- Edit the configuration file (
~/.minirc.dflper default). - Add the following line:
pu addcarreturn Yes
- Edit the configuration file (
miniterm
- Generic method:
- Start with
--eol CRparameter.
- Start with
- Via RIOT build system:
RIOT_TERMINAL=miniterm make term
picocom
- Generic method:
- Start with
--imap lfcrlfparameter.
- Start with
- Via RIOT build system:
RIOT_TERMINAL=picocom make term
putty
- Graphical method:
- Go to configuration tree and choose
Terminalbranch. - Enable option
Implicit CR in every LF.
- Go to configuration tree and choose