mirror of
https://github.com/irungentoo/toxcore.git
synced 2024-03-22 13:30:51 +08:00
refresh windows after resize
This commit is contained in:
parent
26a01e92ec
commit
e9f15d3879
|
@ -8,6 +8,7 @@
|
|||
#include <stdlib.h>
|
||||
#include <stdbool.h>
|
||||
#include <stdint.h>
|
||||
#include <signal.h>
|
||||
|
||||
#ifdef _win32
|
||||
#include <direct.h>
|
||||
|
@ -25,9 +26,17 @@
|
|||
#include "friendlist.h"
|
||||
|
||||
|
||||
void on_window_resize(int sig)
|
||||
{
|
||||
endwin();
|
||||
refresh();
|
||||
clear();
|
||||
}
|
||||
|
||||
static void init_term()
|
||||
{
|
||||
/* Setup terminal */
|
||||
signal(SIGWINCH, on_window_resize);
|
||||
initscr();
|
||||
cbreak();
|
||||
keypad(stdscr, 1);
|
||||
|
|
Loading…
Reference in New Issue
Block a user