From 1be9127ee70d4850f54b2e7b21bdd06f465bfe08 Mon Sep 17 00:00:00 2001 From: Daniel Silverstone Date: Mon, 6 May 2019 10:11:47 +0100 Subject: Update using-monkey docs for console logging output Signed-off-by: Daniel Silverstone --- docs/using-monkey.md | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/docs/using-monkey.md b/docs/using-monkey.md index 8d051cfff..5e543d63b 100644 --- a/docs/using-monkey.md +++ b/docs/using-monkey.md @@ -135,9 +135,7 @@ Commands Cause a browser window to execute some javascript. It won't work if the window doesn't have a *finished* HTML content. - This will send a `WINDOW JS WIN` _%id%_ `RET` `TRUE`/`FALSE` - where `FALSE` indicates that some issue prevented the injection of - the script. + This will send a `JS` message back. ### Login commands @@ -355,6 +353,18 @@ Responses The core wraps redraws in these messages. Thus `PLOT` responses can be allocated to the appropriate window. +* `WINDOW JS WIN` _%id%_ `RET` `TRUE`/`FALSE` + + Here `FALSE` indicates that some issue prevented the injection of + the script. + +* `WINDOW CONSOLE_LOG WIN` _%id%_ `SOURCE` _%source%_ _%foldable%_ _%level%_ _%str%_ + + Here, _%source%_ will be one of: `client-input`, `scripting-error`, or + `scripting-console`. _%foldable%_ will be one of `FOLDABLE` or + `NOT-FOLDABLE`. _%level%_ will be one of `LOG`, `INFO`, `WARN`, or + `ERROR`. The terminal string will be the log message. + ### Download window messages * `DOWNLOAD CREATE DWIN` _%id%_ `WIN` _%id%_ -- cgit v1.2.3