[Gambas-user] Fwd: \r\n and \n
Jussi Lahtinen
jussi.lahtinen at ...626...
Sun Aug 27 22:57:19 CEST 2017
I just realized that Benoit answered directly to me, not via the list.
Thank you everyone, but the "problem" is solved. See below.
Jussi
---------- Forwarded message ----------
From: Benoît Minisini <gambas at ...1...>
Date: Sun, Aug 27, 2017 at 11:21 PM
Subject: Re: [Gambas-user] \r\n and \n
To: Jussi Lahtinen <jussi.lahtinen at ...626...>
Le 27/08/2017 à 22:18, Jussi Lahtinen a écrit :
> See the attached project. I'm not sure whether this is feature or bug, but
> I would appreciate explanation for it. I expect to get string ending with
> \n, but I always get it ending with \r\n.
> Why?
>
>
> Jussi
>
>
Because:
- Your programs are run inside pseudo-terminals.
- The pseudo-terminals are now "correctly" initialized, with newlines "\n"
emitted by the process becoming "\r\n" on the pseudo-terminal, so that they
have the intentional effect (start a new line and go back to the beginning
of the line).
Regards,
--
Benoît Minisini
More information about the User
mailing list