Mercurial > hg > nnchat
comparison nnchat.c @ 342:adc615a6b4e5
Call erase() when terminal is resized, this works around certain problems with old NCurses versions.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Thu, 23 Jun 2011 01:23:19 +0300 |
parents | ece94ae2a051 |
children | 102fb74fc794 |
comparison
equal
deleted
inserted
replaced
341:ece94ae2a051 | 342:adc615a6b4e5 |
---|---|
1596 | 1596 |
1597 switch (c) { | 1597 switch (c) { |
1598 #ifdef KEY_RESIZE | 1598 #ifdef KEY_RESIZE |
1599 case KEY_RESIZE: | 1599 case KEY_RESIZE: |
1600 resize_term(0, 0); | 1600 resize_term(0, 0); |
1601 erase(); | |
1601 timeout(SET_DELAY); | 1602 timeout(SET_DELAY); |
1602 | 1603 |
1603 if (!initializeWindows()) { | 1604 if (!initializeWindows()) { |
1604 errorMsg("Error resizing curses chatWindows\n"); | 1605 errorMsg("Error resizing curses chatWindows\n"); |
1605 isError = TRUE; | 1606 isError = TRUE; |