diff options
author | Daniel Silverstone <dsilvers@digital-scurf.org> | 2019-05-06 10:11:47 +0100 |
---|---|---|
committer | Daniel Silverstone <dsilvers@digital-scurf.org> | 2019-05-06 10:11:47 +0100 |
commit | 1be9127ee70d4850f54b2e7b21bdd06f465bfe08 (patch) | |
tree | 71d3e06d22722bc8d3bf430ee0d8e41a8c48178e /docs | |
parent | 2b8531ff490a8f262a4f416e8568fdd9dabb5bfd (diff) | |
download | netsurf-1be9127ee70d4850f54b2e7b21bdd06f465bfe08.tar.gz netsurf-1be9127ee70d4850f54b2e7b21bdd06f465bfe08.tar.bz2 |
Update using-monkey docs for console logging output
Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
Diffstat (limited to 'docs')
-rw-r--r-- | docs/using-monkey.md | 16 |
1 files 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%_ |