1
0
mirror of https://github.com/SquidDev-CC/CC-Tweaked synced 2024-12-13 19:50:31 +00:00

Clarify term_resize event

Closes #1000, fixes #999.

Co-authored-by: Wojbie <Wojbie@gmail.com>
This commit is contained in:
Jonathan Coates 2021-12-31 18:12:26 +00:00
parent f1a08a3362
commit a9519f68a1
No known key found for this signature in database
GPG Key ID: B9E431FF07C98D06

View File

@ -2,7 +2,12 @@
module: [kind=event] term_resize
---
The @{term_resize} event is fired when the main terminal is resized, mainly when a new tab is opened or closed in @{multishell}.
The @{term_resize} event is fired when the main terminal is resized. For instance:
- When a the tab bar is shown or hidden in @{multishell}.
- When the terminal is redirected to a monitor via the "monitor" program and the monitor is resized.
When this event fires, some parts of the terminal may have been moved or deleted. Simple terminal programs (those
not using @{term.setCursorPos}) can ignore this event, but more complex GUI programs should redraw the entire screen.
## Example
Prints :