rem: const char* bar="------------------------------------------------------------------------------\n";
add: char* bar="------------------------------------------------------------------------------\n";
context: void ecasv_output_init(void){#ifdef ECASV_USE_CURSES    initscr();    erase();    int r=0; // jkc: added r for row indexing here and below    mvprintw(r++, 0, "ecasignalview v%s (%s) -- (C) K.Vehmanen, J.Cunningham", ecatools_signalview_version.c_str(), VERSION);    //mvprintw(r++, 0, "* (C) 1999-2005 Kai Vehmanen, Jeff Cunningham                    *\n");    //mvprintw(r++, 0, "******************************************************\n\n");    ++r;    mvprintw(r++, 2, "Input/output: \"%s\" => \"%s\"",	     ecasv_input.c_str(),ecasv_output.c_str());    double avg_length = (double)ecasv_rate_msec * avg_peak_buffer_sz;    mvprintw(r++, 2, 	     "Settings: %s refresh=%ldms bsize=%ld avg-length=%.0fms",	     ecasv_format_string.c_str(), ecasv_rate_msec, ecasv_buffersize, avg_length);    /* mvprintw(r++, 0, "refresh rate = %ld (msec), buffer size = %ld, "	     "avg-length = %.0f (msec)", 	     ecasv_rate_msec, ecasv_buffersize, avg_length); */    ++r;    const char* bar="------------------------------------------------------------------------------\n";    mvprintw(r++, 0, bar);    mvprintw(r, 0, "channel");    if (ecasv_log_display_mode)       mvprintw(r++,38, "%s avg-peak dB  max-peak dB  clipped\n", ecasv_bar_buffer);    else      mvprintw(r++,38, "%s  avg-peak      max-peak   clipped\n", ecasv_bar_buffer);    mvprintw(r++, 0, bar);        memset(ecasv_bar_buffer, ' ', ecasv_bar_length_const - 4);    ecasv_bar_buffer[ecasv_bar_length_const - 4] = 0;    mvprintw(r + ecasv_chcount + 3, 0, "Press spacebar to reset stats"); // jkc: addition    move(r + ecasv_chcount - 2, 0);        // 13 + 12    refresh();#endif}