From d856a1b81760e4466ac029f9aaf123b2cdd5d0a7 Mon Sep 17 00:00:00 2001 From: Hauke D Date: Fri, 19 Oct 2018 19:46:08 +0200 Subject: [PATCH] Made "merge STDOUT+ERR" option conf'able in editor --- web/democode/demo.html | 6 +++++- web/democode/perleditor.html | 23 ++++++++++++++++++----- 2 files changed, 23 insertions(+), 6 deletions(-) diff --git a/web/democode/demo.html b/web/democode/demo.html index e691d7c..8f200d9 100644 --- a/web/democode/demo.html +++ b/web/democode/demo.html @@ -170,7 +170,11 @@ this will not work. Additional options: Setting "mergeStdOutErr" to a true value causes STDOUT and STDERR output to be output together, similar to the way -they would be on the console. +they would be on the console. *However,* note that WebPerl +currently doesn't think it's connected to a terminal, which means +that perl defaults to block instead of line buffering STDOUT, so +it may seem like you always see STDERR output before STDOUT. If you +want to truly intermix the two, turn on autoflush ("$|=1;"). If you set the "autorun" option, the editor will attempt to run the script as soon as the runner is ready. *WARNING:* If you have diff --git a/web/democode/perleditor.html b/web/democode/perleditor.html index 2e55d09..a129d6f 100644 --- a/web/democode/perleditor.html +++ b/web/democode/perleditor.html @@ -39,7 +39,7 @@ If not, see http://perldoc.perl.org/index-licence.html