0

I am using curses in Ruby to display data in two different windows. Since the code might run in a X11 terminal, I would like the curses window resize when the terminal resizes. Is there any way of doing that?

xis
  • 24,330
  • 9
  • 43
  • 59

1 Answers1

1

Use:

Signal.trap("SIGWINCH") do
   ...
end
xis
  • 24,330
  • 9
  • 43
  • 59