1
0
mirror of https://github.com/SquidDev-CC/CC-Tweaked synced 2024-12-14 04:00:30 +00:00
CC-Tweaked/doc/events/term_resize.md
2021-01-19 09:20:52 +00:00

343 B

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}.

Example

Prints :

while true do
  os.pullEvent("term_resize")
  local w, h = term.getSize()
  print("The term was resized to (" .. w .. ", " .. h .. ")")
end