--- loncom/lonmaxima 2008/02/14 14:09:43 1.37 +++ loncom/lonmaxima 2009/04/17 00:12:14 1.40 @@ -3,7 +3,7 @@ # The LearningOnline Network with CAPA # Connect to MAXIMA CAS # -# $Id: lonmaxima,v 1.37 2008/02/14 14:09:43 bisitz Exp $ +# $Id: lonmaxima,v 1.40 2009/04/17 00:12:14 www Exp $ # # Copyright Michigan State University Board of Trustees # @@ -275,7 +275,7 @@ sub make_new_child { &status('Accepting connections'); my $client = $server->accept() or last; &sync($command); - print $command ("display2d:false;kill(all);\n"); + print $command ("display2d:false;simp:true;kill(all);\n"); &getmaximaoutput($command,2); &sync($command); my $syntaxerr = 0; @@ -356,7 +356,7 @@ sub getmaximaoutput { if ($error) { return 'Error: '.$error; } - $output =~ s/\r+//g; # Remove Windows-style linebreaks + $output =~ s/\r+//gs; # Remove Windows-style linebreaks my $foundoutput=0; my $found_label=0; my $realoutput='';