Question about stderr output containing carriage return External

Thorsten Glaser t.glaser at tarent.de
Sat Nov 11 11:56:59 AEDT 2023


On Sat, 11 Nov 2023, Marian Beermann wrote:

> Though the commit doesn't say why it needs the \r.

When the terminal is in raw mode, \n is not the line separator
but \x0D\x0A is: \x0D moves the cursor to the beginning of the
line and \x0A moves it to one line below but does not change
the horizontal position.

So it’s a requirement when in raw mode and doesn’t hurt in
cooked mode.

bye,
//mirabilos
-- 
Infrastrukturexperte • Qvest Digital AG
Am Dickobskreuz 10, D-53121 Bonn • https://www.qvest-digital.com/
Telephon +49 228 54881-393 • Fax: +49 228 54881-235
HRB AG Bonn 18196 • USt-ID (VAT): DE274355441
Vorstand: Dr. Stefan Barth, Kai Ebenrett, Boris Esser, Alexander Steeg
Vorsitzender Aufsichtsrat: Peter Nöthen


More information about the openssh-unix-dev mailing list