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
721 B
C++
24 lines
721 B
C++
#include "textstream.h"
|
|
#include "../arch/core.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){
|
|
//CGA::Color fg = static_cast<CGA::Color>((LAPIC::getID() + 1 ));
|
|
//this->reset(' ', CGA::Attribute(CGA::LIGHT_GREEN, fg, false));
|
|
}
|
|
|
|
|
|
void TextStream::flush() {
|
|
CGA::Color fg = static_cast<CGA::Color>((Core::getID() + 1 ));
|
|
print(buffer,pos,CGA::Attribute(CGA::LIGHT_GREEN, fg, false));
|
|
pos = 0;
|
|
}
|