[Scilab-users] Sockets in scilab 6.0

Samuel Gougeon sgougeon at free.fr
Thu Jul 12 12:51:05 CEST 2018


Le 21/06/2018 à 22:23, James Holland a écrit :
> .../...
>
> I've modified the write routine from this:
>
>
> function SOCKET_write(id,commande)
> 	TCL_EvalStr([	"puts $tclsocket"+string(id)+" """+commande+ascii(10)+"""";
> 			"flush $tclsocket"+string(id)]);
> endfunction
>
> to this:
>
> function SOCKET_write(id,commande)
> TCL_EvalStr([	"puts $tclsocket"+string(id)+"" ""+commande+"";
> 					"flush $tclsocket"+string(id)]);
>
> endfunction
>
> That has already removed some spurious LF/CRs.
> Putty also works OK and doesn't add the CR/LF at the end.

Agreed. I will push this proposal in the next release.




More information about the users mailing list