Clearing console?

Jul 1, 2014 at 9:42pm
OS:Ubuntu 12.04
IDE:CodeBlocks

any one know how to clear the console efficiently?
im running a console along my opengl app and need to print some variables out to the console for debugging. and i dont want it spam full of everything. anyone know how to clear under linux?
Jul 1, 2014 at 10:06pm
Last edited on Jul 1, 2014 at 10:06pm
Jul 1, 2014 at 10:16pm
i just set up ncurses. and understand everything except how to print a float. and cant find anywhere that says how
Jul 2, 2014 at 12:07am
You can use printw() (similar to use to printf()).
Jul 3, 2014 at 4:05pm
You realize that your debugger is there for this exact purpose, right? You should definitely learn how to use that, and stop outputting a bunch of random variables. Program output (besides info for the user) should all be confined to log files, which really just describe the state of the program and description of errors that happen. Checking variable values is a job for the debugger. It's pretty easy to use the debugger through an IDE like Code:Blocks.
Topic archived. No new replies allowed.