C – Testing ncurses on linux – 005.

In this tutorial, I will show you how to put buttons like a matrix:

The derwin() function is used to create a new window with these arguments :

  • win is the parent window in which the subwindow will be created.
  • 1 is the number of rows of the subwindow.
  • 4 is the number of columns of the subwindow.
  • 1 is the starting y-coordinate (row) of the subwindow within the parent window.
  • 1 is the starting x-coordinate (column) of the subwindow within the parent window.

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.