title: Eclipse CDT Debug Has Extra Lines In Scanf
body: <p>I have a simple piece of code that will echo whatever you type into the console:</p>
  
  <pre><code>int main(){
      setvbuf(stdout, NULL, _IONBF, 0);
      char c = -1;
      while(scanf("%c", &amp;c) == 1){
          printf("%c", c);
      }
  }
  </code></pre>
  
  <p>But when I Debug this code in Eclipse CDT it outputs the following without me typing anything into the console.</p>
  
  <pre><code>47-thread-select 1
  </code></pre>
  
  <p>How can I disable this from being fed into the input stream? Also sometimes if I run this there are multiple lines being outputted so I cannot simply discard 1 line.</p>