term_resize event

From ComputerCraft
Jump to: navigation, search
term_resize
Event
Returns
    nothing

Source CC:Tweaked

Occurs every time the term resizes.

ExampleExampleNotify about resize
Notifies the user when the term has been resized.
Code
while true do
  local event = os.pullEvent("term_resize")
  local x, y = term.getSize()
  print("The term has been resized to", x, ",", y)
end