Skip to content

Commit f1b65b9

Browse files
committed
feat(guides/serial-monitor): add "collapse" property
1 parent 3cfd1b8 commit f1b65b9

File tree

1 file changed

+13
-2
lines changed

1 file changed

+13
-2
lines changed

docs/guides/serial-monitor.md

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,9 +92,10 @@ The default configuration is as follows:
9292
9393
```json
9494
"serialMonitor": {
95+
"collapse": false,
96+
"convertEol": false,
9597
"display": "auto",
96-
"newline": "lf",
97-
"convertEol": false
98+
"newline": "lf"
9899
}
99100
```
100101

@@ -114,6 +115,16 @@ The `display` property configures when/how to display the serial monitor. The po
114115

115116
Note: the "terminal" mode supports text and background colors. You can check out [the Arduino ANSI colors example](https://wokwi.com/projects/308893120796295745) to see it in action.
116117

118+
### Collapse
119+
120+
You can set the Serial Monitor to be collapsed by default when it opens, by adding the `"collapse": true` property to the `"serialMonitor"` section:
121+
122+
```json
123+
"serialMonitor": {
124+
"collapse": true
125+
}
126+
```
127+
117128
### Newline
118129

119130
When you input a line of text in the Serial Monitor, the simulator sends that text to your program.

0 commit comments

Comments
 (0)