[Ecls-list] String printing error?

Juan Jose Garcia Ripoll lisp at arrakis.es
Fri Feb 4 07:40:30 UTC 2005


Julian Stecklina wrote:

>Hello,
>
>I just succeeded creating a two-way tcp stream to telnet. :)
>
Congratulations! Are we to see that sockets interface anytime soon :-O'''

>BSD-SOCKETS> (read-line *str*)
>"HELLO
>NIL
>BSD-SOCKETS> (coerce * 'list)
>(#\H #\E #\L #\L #\O #\Return)
>
>The problem is the missing closing ". SBCL exhibits the same behaviour.
>What's going on? Shouldn't it print like "HELLO^M" ?
>
The #\Return character is telling your terminal to go to the beginning 
of line:

 > (setf *A* '(#\a #\b #\c #\Return #\d #\e))
(#\a #\b #\c #\Return #\d #\e)
 > (coerce *A* 'string)
de"c

Regards,

Juanjo




More information about the ecl-devel mailing list