For some reason, I am unable to get my program to adjust to the terminal when it changes size. I know that the terminal is sending SIGWINCH because other ncurses programs are able to resize by themselves just fine.
Initially, I thought that refresh() by itself would be enough because the original c++ version of the program I am rewriting was able to use it alone. Continuing to look at the documentation, however, I noticed that resizeterm(0,0) is also supposed to refit the ncurses contents to the terminal window.
For some reason, I am unable to get my program to adjust to the terminal when it changes size. I know that the terminal is sending SIGWINCH because other ncurses programs are able to resize by themselves just fine.
Initially, I thought that refresh() by itself would be enough because the original c++ version of the program I am rewriting was able to use it alone. Continuing to look at the documentation, however, I noticed that resizeterm(0,0) is also supposed to refit the ncurses contents to the terminal window.
Code