Skip to content

Commit 7d04b26

Browse files
authored
Update terminal.md
Added example on resizing the terminal to take up less on-screen space
1 parent 9610519 commit 7d04b26

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

docs/user-guide/terminal.md

Lines changed: 9 additions & 0 deletions
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)