Skip to content

Commit 23e6e88

Browse files
authored
Merge pull request #1522 from mi-hol/script_rt_options
Improve formatting in Scripting-Language.md
2 parents 7e888e0 + 3ec4cb2 commit 23e6e88

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

docs/Scripting-Language.md

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -112,11 +112,10 @@ with all linker files
112112

113113
#### script init error codes
114114
after initialization the script reports some info in the console e.g:
115-
00:00:00.043 SCR: nv=15, tv=1, vns=83, vmem=895, smem=8192, gmem=588, pmem=0, tmem=9758
115+
`00:00:00.043 SCR: nv=15, tv=1, vns=83, vmem=895, smem=8192, gmem=588, pmem=0, tmem=9758`
116116
nv = number of used variables in total (numeric and strings)
117117
tv = number of used string variables
118-
vns = total size of name strings in bytes (may not exceed 256) or #define SCRIPT_LARGE_VNBUFF extents the size to 4095 (default)
119-
118+
vns = total size of name strings in bytes (may not exceed 256) or #define SCRIPT_LARGE_VNBUFF extents the size to 4095 (default)
120119
vmem = used heap ram by the script (psram if available)
121120
smem = used script (text) memory (psram if available)
122121
gmem = used script global static memory
@@ -151,7 +150,12 @@ If you're used to work with Visual Studio Code, you can use [this extension](htt
151150

152151
### Console Commands
153152

154-
- `script <n>` <n>: `0` = switch script off; `1` = switch script on `8` = switch stop on error off; `9` = switch stop on error on
153+
- `script <n>` set runtime options for scripting
154+
with <n>:
155+
- `0` = switch script off
156+
- `1` = switch script on
157+
- `8` = switch stop on error off
158+
- `9` = switch stop on error on
155159
- `script ><cmdline>` to execute `<cmdline>`
156160

157161
- Can be used to set variables, e.g., `script >mintmp=15`

0 commit comments

Comments
 (0)