term_resize event

term_resize
Event
Returns
    nothing

Source CC:Tweaked

Occurs every time the term resizes.

ExampleNotify about resize
Notifies the user when the term has been resized.
Code
<nowiki>
while true do
  local event = os.pullEvent("term_resize")
  local x, y = term.getSize()
  print("The term has been resized to", x, ",", y)
end
    </nowiki>
This article is issued from Computercraft. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.