Getting updated window size in Curses

  • Thread starter Kevin Michael Smith
  • Start date
K

Kevin Michael Smith

I'm trying to write a SIGWINCH handler for an app using the Curses
bindings in the std lib. I catch SIGWINCH just fine, but Curses::cols,
Curses::lines, Curses.stdscr.maxx, and Curses.stdscr.maxy don't update.

I have three subwindows of stdscr stacked vertically that I need
to update the size and positions of, along with updating their content.

This is a learning experience, both for Ruby and for Curses so I may be
missing something somewhat obvious.

If anyone's curious, My goal is a MUD client modelled on TinyFugue but
with Ruby in place of TF's macro expansion language.

Thanks.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,206
Messages
2,571,069
Members
47,675
Latest member
RollandKna

Latest Threads

Top