Catching the signal SIGWINCH in Julia


I am trying to develop a package to create text-based user interfaces in Julia: TextUserInterfaces.jl. However, I need a way to check if the terminal has been resized so I can automatically update the interface. I need to catch the signal SIGWINCH and run a Julia function. Is it possible?