Mercurial > hg > nnchat
comparison nnchat.c @ 134:f367fc14021a
Use resize_term() and erase() on resize event also with ncurses and not only with PDcurses.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Sat, 30 Oct 2010 20:42:47 +0300 |
parents | ffe8bbd429fa |
children | fad8c31e41e6 |
comparison
equal
deleted
inserted
replaced
133:ffe8bbd429fa | 134:f367fc14021a |
---|---|
1015 | 1015 |
1016 | 1016 |
1017 switch (c) { | 1017 switch (c) { |
1018 #ifdef KEY_RESIZE | 1018 #ifdef KEY_RESIZE |
1019 case KEY_RESIZE: | 1019 case KEY_RESIZE: |
1020 #ifdef PDCURSES | |
1021 resize_term(0, 0); | 1020 resize_term(0, 0); |
1022 erase(); | 1021 erase(); |
1022 #ifdef PDCURSES | |
1023 timeout(SET_DELAY); | 1023 timeout(SET_DELAY); |
1024 #endif | 1024 #endif |
1025 | 1025 |
1026 if (!initializeWindows()) { | 1026 if (!initializeWindows()) { |
1027 errorMsg("Error resizing curses windows\n"); | 1027 errorMsg("Error resizing curses windows\n"); |