def NcursesInterface::resize_term
Ncurses::refresh
h = []; w = []
Ncurses::getmaxyx Ncurses::stdscr, h, w
$config['w'] = w[0]
$config['h'] = h[0] - 1
$config['theme']['window_order'].each { |key|
win = $wins[NcursesInterface::get_win_id(key)]
coords = $config['theme']['win_' << key]['coords'].dup
coords[2] = $config['w'] - coords[0] if coords[2] == -1
coords[3] = $config['h'] - coords[1] if coords[3] == -1
win.win.move(coords[1], coords[0])
win.win.resize(coords[3], coords[2])
win.refresh
win.draw_items
}
set_status " #{$config['msg_term_resize']}#{w[0]}x#{h[0]}"
end