#Is there a limit to how many items you can render with an Ncurses menu?

4 messages · Page 1 of 1 (latest)

potent osprey
#

Hi! I'm trying to render this list of 27 items:

  MENU *tasksMenu = renderMenuFromJson(tasksJson, "content");

  // Render
  projectWindow = newwin(row, col, 0, 0);
  projectPanel = new_panel(projectWindow);
  update_panels();
  post_menu(tasksMenu);
  refresh();

item_count(tasksMenu) outputs 27, so I know it's not an issue with the data that I'm using to create the menu. I know that:

If a menu has more menu items than can be displayed at once, only some of the menu items will be mapped onto the screen. (https://www.gnu.org/software/guile-ncurses/manual/html_node/Menu-Item-Procedures.html)
But the terminal that I'm opening is plenty big (row = 54, col = 107). What's going on here?

polar mesaBOT
#

When your question is answered use !solved to mark the question as resolved.

Remember to ask specific questions, provide necessary details, and reduce your question to its simplest form. For tips on how to ask a good question use !howto ask.

potent osprey
#

!solved