title: How can you clear (reset) the screen in unix/posix? (not curses/newlines)
body: <p>I'd like to know (if it's possible) how can you clear/reset the terminal screen in linux/mac/unix (not DOS) like you would do on windows/DOS with clrscr() from "conio.h".
  I know there are similar questions here and on the web in general, but I wasn't able to find one that answered my particular case.</p>
  
  <p>ATTENTION: I know about curses/ncurses and solutions that emulate system("clear") but that's not what I want.
  I want to reset completely the terminal buffer (i.e. I don't want to scroll down or add newlines to clear the screen), without using curses/ncurses please (I don't like the ncurses screen mode, I want to stick with the default mode).</p>
  
  <p>Is it possible or I'm asking something impossible? :P
  I'm trying to make a console-game (not exactly a roguelike) without curses, and I don't like to see what I printed on the screen before clearing it just by scrolling up.</p>
  
  <p>EDIT: I've tried system("reset"), that's not a nice way using a system call, and it's getting a bad delay using that command but it's close to what I want to do.. Is there some kind of function/library that can do something similar?</p>
  
  <p>I think that'll be a good solution as well to do something like move(0,0) and then print again what I need or just blank space (this way I won't have scrolling and the old text above it). But I don't know if there's a library that will do that without going un curses mode.</p>
  
  <p>For now see my own answer below, I'm using</p>
  
  <pre><code>printf("\033c");
  </code></pre>
  
  <p><strike>this is working fine for now and solved my problem. If anybody knows any issue with this solution please let me know.</strike>
  I have an issue with the cursor visibility. If it was hidden this code will show it again, do you know a fix for this?</p>
  
  <p>Thanks,</p>
  
  <p>Zorgatone</p>