Mention that makeOutputTextarea merges out+err

Thanks @LanX!
gh-pages
Hauke D 7 years ago
parent b36cbc13f3
commit ca4c2f57e0

@ -410,11 +410,11 @@ Defaults to a simple implementation that logs via `console.debug()`.
#### `Perl.makeOutputTextarea(id)` #### `Perl.makeOutputTextarea(id)`
This function will create a new DOM `<textarea>` element, set up a `Perl.output` This function will create a new DOM `<textarea>` element, set up a
handler that redirects Perl's output into the `<textarea>`, and return the `Perl.output` handler that redirects Perl's output (merged STDOUT and STDERR)
DOM element. You may optionally pass this function a string argument giving into the `<textarea>`, and return the DOM element. You may optionally pass this
a DOM ID. You will need to add the `<textarea>` to your DOM yourself function a string argument giving a DOM ID. You will need to add the
(see `webperl_demo.html` for an example). `<textarea>` to your DOM yourself (see `webperl_demo.html` for an example).
WebPerl.pm WebPerl.pm

Loading…
Cancel
Save