lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


Hello,
i would like to receive a single line from a socket, but without \n or
\r removed.
In particular, from the doc it says:

*l': reads a line of text from the socket. The line is terminated by a
LF character (ASCII 10), optionally preceded by a CR character (ASCII
13). The CR and LF characters are not included in the returned line.
In fact, all CR characters are ignored by the pattern. This is the
default pattern;

Nevertheless, i would like those characters not to be ignored. Any idea ?

Thanks,
valerio