title: Ncurses and C++ string concatenation not working properly
body: <p>I'm trying to display a statusbar using ncurses with "---" between items, like most terminal programs do.</p>
  
  <p>I have the following code so far:</p>
  
  <pre class="lang-c prettyprint-override"><code>#include &lt;iostream&gt;
  #include &lt;cmath&gt;
  #include &lt;string&gt;
  #include &lt;curses.h&gt;
  
  using namespace std;
  
  int main() {
      initscr();
      start_color();
  
      init_pair(3, COLOR_WHITE, COLOR_RED);
  
      getch();
      attron(COLOR_PAIR(3));
  
      string a = "--- Tickets: 455";
  
      a.append(70, '-');
  
      mvprintw(LINES-1, 0, a.c_str());
  
      getch();
  
      endwin();
  }
  </code></pre>
  
  <p>The mvprintw should output the whole width of the screen until the right border. But in fact, only one "-" is appended.</p>
  
  <p>I'm not sure if this is a an ncurses problem or if strings are not converted to c style strings properly. Could someone help me identify the issue?</p>