Text streams have a field newline that controls the 
handling of the newline convention. Note that inside Prolog all lines 
end with a single newline (\u000a, \n) code 
point. The values are described below. The default depends on the OS and 
can be manipulated using the newline(Mode) property of set_stream/2.
SIO_NL_DETECTSIO_NL_POSIXSIO_NL_DOS\n) as \r\n. Discard \r 
from the input.225The current 
implementation does not check that the character is followed by \