def NcursesInterface::set_status(str)
str ||= ''
if $config['run_http_server'] || $config['run_drb_server']
$stderr.puts "Raggle: #{str}"
else
w, e_msg = $config['w'], $config['msg_exit']
$status, $new_status = str, str
if str.length > (w - e_msg.length)
str = str.slice(0, w - e_msg.length)
else
str += ' ' * (w - e_msg.length - str.length)
end
msg = str << e_msg
Ncurses::stdscr.color_set $config['theme']['status_bar_cols'], nil
Ncurses::mvprintw $config['h'], 0, msg.escape_format
Ncurses::refresh
end
end