De acordo com o manual screen
, em Tipos DOWINDOW :
If a tty (character special device) name (e.g.
"/dev/ttya"
) is specified as the first parameter, then the window is directly connected to this device. This window type is similar to"screen cu -l /dev/ttya"
. Read and write access is required on the device node, an exclusive open is attempted on the node to mark the connection line as busy. An optional parameter is allowed consisting of a comma separated list of flags in the notation used by ‘stty(1)’:
Ele continua listando alguns dos possíveis sinalizadores, mas adiciona
You may want to specify as many of these options as applicable. Unspecified options cause the terminal driver to make up the parameter values of the connection. These values are system-dependent and may be in defaults or values saved from a previous connection.
O lugar para procurar mais informações está no manual stty
, porque screen
simplesmente passa esses sinalizadores adicionais para stty
.
O comportamento inadequado com que sua pergunta se assemelha mais pode ser corrigido adicionando o sinalizador onlcr
, listado em "Configurações de saída":
[-]
onlcr
translate newline to carriage return-newline
Por exemplo:
sudo screen /dev/ttyACM0 9600,cs8,onlcr