title: It seems to be clearing the last line for no reason
body: <p>It is meant to be a terminal screensaver although it make a newline or clears the last line.
  here is the code:</p>
  <pre><code>#include &lt;stdio.h&gt;
  #include &lt;stdlib.h&gt;
  #include &lt;unistd.h&gt;
  #include &lt;sys/ioctl.h&gt;
  
  int i, j, x=1, y=1, xm=1, ym=1;
  
  int main()
  {
      printf(&quot;test&quot;);
      for(;;)
      {
              struct winsize w;
              ioctl(STDOUT_FILENO, TIOCGWINSZ, &amp;w);
              for (i=0; i&lt;w.ws_row; i++)
              {
                      for (j=0; j &lt;w.ws_col; j++)
                      {
                              if (i == y || j == x)
                              {
                                      printf(&quot;#&quot;);
                              } else
                              {
                                      printf(&quot; &quot;);
                              }
                      }
                      if (i &lt; w.ws_row-1)
                      {
                              printf(&quot;\n&quot;);
                      }
              }
              if (y &gt;= w.ws_row-1)
              {
                      ym=-1;
              } else if (y == 0)
              {
                      ym=1;
              }
              if (x &gt;= w.ws_col-1)
              {
                      xm=-1;
              } else if (x == 0)
              {
                      xm=1;
              }
              x=x+xm;
              y=y+ym;
              usleep(100000);
      }
      return 0;
  
  }
  </code></pre>
  <p>I think it might have something to do with usleep because when I remove it there is never a blank line.</p>