keypad(application_windows.pMainWin, TRUE);
keypad(application_windows.pMainWin, CU_TRUE);
static bool initialize_windows(void){  bool bStatus = false;  if (NULL == (application_windows.pMainWin = initscr()))    goto main_fail;  start_color();  f_nLeft = application_windows.pMainWin->_begx;  f_nTop = application_windows.pMainWin->_begy;  f_nWidth = application_windows.pMainWin->_maxx;  f_nHeight = application_windows.pMainWin->_maxy;  if (NULL == (application_windows.pTitleWin = newwin(3, f_nWidth, 0, 0)))    goto title_fail;  if (NULL == (application_windows.pProgressWin = newwin(2, f_nWidth, 3, 0)))    goto progress_fail;  if (NULL == (application_windows.pSummaryWin = newwin(1, f_nWidth, 5, 0)))    goto summary_fail;  if (NULL == (application_windows.pRunSummaryWin = newwin(1, f_nWidth, 6, 0)))    goto run_summary_fail;  if (NULL == (application_windows.pDetailsWin = newwin(f_nHeight - f_nTop - 7 , f_nWidth, 7, 0)))    goto details_fail;  if (NULL == (application_windows.pOptionsWin = newwin(1, f_nWidth, f_nHeight - f_nTop, 0)))    goto option_fail;  curs_set(0);  noecho();  cbreak();  keypad(application_windows.pMainWin, TRUE);  init_pair(CLEAR_COLOR, COLOR_WHITE, COLOR_BLACK);  init_pair(TITLE_COLOR, COLOR_WHITE, COLOR_BLACK);  init_pair(PROGRESS_BACKGROUND_COLOR, COLOR_BLACK, COLOR_WHITE);  init_pair(PROGRESS_SUCCESS_COLOR, COLOR_WHITE, COLOR_GREEN);  init_pair(PROGRESS_FAILURE_COLOR, COLOR_WHITE, COLOR_RED);  init_pair(MENU_COLOR, COLOR_WHITE, COLOR_BLACK);  refresh_windows();  bStatus = true;  goto main_fail;  /*   * Error Handlers for all the stages.   */option_fail:  delwin(application_windows.pDetailsWin);details_fail:  delwin(application_windows.pRunSummaryWin);run_summary_fail:  delwin(application_windows.pSummaryWin);summary_fail:  delwin(application_windows.pProgressWin);progress_fail:  delwin(application_windows.pTitleWin);title_fail:  endwin();main_fail:  return bStatus;}