title: How to handle changing the size of the terminal window?
body: <p>I'm creating a project that uses the ncurses library. However, I have a huge problem with handling the event associated with changing the size of the terminal window. Currently, when the window is smaller than what I would like to display, the part that does not fit is cut off. So far, I have only been able to find information to use <code>newpad</code> / <code>subpad</code> in such situations. The problem is that by reading the documentation, I do not understand how to use it. I do not know if I should use a <code>pad</code> instead of a <code>window</code>, or create a <code>window</code> in a <code>pad</code>? I would like to ask for sources that describe more accurately the use of the <code>pads</code>. Alternatively, if I should use something different then <code>pads</code>, I am asking for a hint what should be used in the project.</p>
  
  <p>Thank you in advance for your response.</p>