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
469 B
C++
24 lines
469 B
C++
#include "textstream.h"
|
|
|
|
TextStream::TextStream(unsigned from_col,
|
|
unsigned to_col,
|
|
unsigned from_row,
|
|
unsigned to_row,
|
|
bool use_cursor)
|
|
: TextWindow(from_col,
|
|
to_col,
|
|
from_row,
|
|
to_row,
|
|
use_cursor){}
|
|
|
|
|
|
void TextStream::flush() {
|
|
for (unsigned i=0; i <= pos; i++) {
|
|
print(&buffer[i],1);
|
|
}
|
|
pos = 0;
|
|
|
|
|
|
|
|
}
|