PDA

View Full Version : C++ Advanced Console Output



7cardcha
October 18th, 2011, 05:12 AM
I would consider my self decent in c++
(
Templates classes, polymorphism, namespaces, bitwise operators ,templates pointers, static, this etc etc
)
However I would not consider myself good at doing console I/O
Take man (The command) When you hit q it exits. You don't have to type q then hit enter. AND you don't have to have the entire man page printed out at once. You can scroll. The only way I could think to do that is to print thousands of newlines(Update print new lines print info) Still wouldn't be the same. Is there come kind of guide to console I/O?

Shehab Ahmed
October 18th, 2011, 05:46 AM
check osdev

Zugzwang
October 18th, 2011, 12:50 PM
@OP: There are libraries that provide the functionality that you want. In particular, "libncurses" has all kinds of functions for clearing screen, positioning the cursor, etc. Use your favourite search engine to find a tutorial on it.