I'm wondering: is it possible to get the width of a line in the standard output? Not the std::cout.width()
or std::setw()
widths, but the actual maximum number of characters before the OS will wrap a line?
EDIT: just to inform, I'm currently using windows xp, though I'd really prefer a portable manner to do this (everything else is portable atm).