13 lines
602 B
Factor
13 lines
602 B
Factor
! Copyright (C) 2009 Daniel Ehrenberg
|
|
! See http://factorcode.org/license.txt for BSD license.
|
|
USING: help.syntax help.markup sequences ;
|
|
IN: io.crlf
|
|
|
|
HELP: crlf
|
|
{ $values }
|
|
{ $description "Prints a carriage return and line feed to the current output stream, used to indicate a newline for certain network protocols." } ;
|
|
|
|
HELP: read-crlf
|
|
{ $values { "seq" sequence } }
|
|
{ $description "Reads until the next CRLF (carriage return followed by line feed) from the current input stream, throwing an error if there is not a CRLF remaining, or if CR is present without immediately being followed by LF." } ;
|