You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

24 lines
479 B
C++

#include "textstream.h"
TextStream::TextStream(unsigned from_col,
unsigned to_col,
unsigned from_row,
unsigned to_row,
bool use_cursor)
: from_col_(0),
to_col_(80),
from_row_(0),
to_row_(25),
use_cursor_(0){}
void TextStream::flush() {
for (unsigned i=0; i <= pos; i++) {
print(&buffer[i],1);
}
pos = 0;
}