title: Issues with ncurses, menu.h, and current_item()
body: <p>I'm having trouble with menus in ncurses. I'm trying to set up a menu, have the user select an option, and set an int called <code>num_players</code> depending upon their selection.
  I do this with <code>boost::lexical_cast</code> and <code>item_name(current_item(my_menu))</code> but every time I call <code>current_item(my_menu)</code> I'm just getting <code>NULL</code>.
  Here's a sample of the code in question:</p>
  
  <pre><code>char *choices[] = {"1", "2", "3", "4", "5", "6"};
      //create the dynamic array for the items and their description
      ITEM** my_items;
      MENU *my_menu;
      int num_choices = 6;
      my_items = new ITEM*;
      for (int x = 0; x &lt; num_choices; x++)
      {
         my_items[x] = new_item(choices[x], choices[x]); 
      }
      my_items[6] = (ITEM*)NULL;
      my_menu = new_menu((ITEM**)my_items);
      set_menu_mark(my_menu, " * ");
      set_current_item(my_menu, my_items[0]);
      post_menu(my_menu);
      wrefresh(scr);
  
      int c;
      while((c = wgetch(scr)) != '\n')
      {   switch(c)
          {   case KEY_DOWN:
                  menu_driver(my_menu, REQ_DOWN_ITEM);
                  break;
              case KEY_UP:
                  menu_driver(my_menu, REQ_UP_ITEM);
                  break;
          }
      }
      //right here, calling current_item just gives me null
      //am I supposed to unpost the menu first?
      //what am I doing wrong? this is frustrating
      ITEM* cur = current_item(my_menu);
      setNumPlayers((char*) item_name(cur));
      unpost_menu(my_menu);
      free_item(my_items[0]);
      free_item(my_items[1]);
      free_item(my_items[2]);
      //etc etc
  </code></pre>