Skip to content

Commit e52c350

Browse files
authored
Merge pull request #160 from Neon22/patch-1
Update terminal.md - resize example
2 parents 2a568e5 + 7d04b26 commit e52c350

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

Diff for: docs/user-guide/terminal.md

+9
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,15 @@ It's very simple to clear a PyTerminal:
111111
</script>
112112
```
113113

114+
### Resize the terminal
115+
116+
The terminal takes up a fair amount of room onscreen. It can be resized to use less.
117+
Here it is 10 lines high.
118+
```python title="Resizing the terminal in python"
119+
if '__terminal__' in locals(): # has a terminal been created
120+
__terminal__.resize(60, 10) # (width, height)
121+
```
122+
114123
### Terminal colors
115124

116125
Colors and most special characters work so you can make the text **bold** or

0 commit comments

Comments
 (0)