title: C ncurses tabsize
body: <p>I'm trying to figure how to change TABSIZE in ncurses, and found the set_tabsize function. I tried it and it simply produces a wrong effect. Simple program to test it:</p>
  
  <pre><code>#include &lt;stdlib.h&gt;
  #include &lt;ncurses.h&gt;
  
  int main(int argc, char** argv)
  {
      initscr(); set_tabsize(4); noecho();
      printw("a\tb\na    b");
      refresh();
      getch();
      endwin();
      return EXIT_SUCCESS;
  }
  </code></pre>
  
  <p>I expect my tabs to be 4 spaces but the output is:</p>
  
  <pre><code>a   b
  a    b
  </code></pre>
  
  <p>Thanks for your attention.</p>