add (colored) textwindow
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
#include "textstream.h"
|
||||
#include "../arch/lapic.h"
|
||||
|
||||
TextStream::TextStream(unsigned from_col,
|
||||
unsigned to_col,
|
||||
@@ -9,10 +10,14 @@ TextStream::TextStream(unsigned from_col,
|
||||
to_col,
|
||||
from_row,
|
||||
to_row,
|
||||
use_cursor){}
|
||||
use_cursor){
|
||||
CGA::Color fg = static_cast<CGA::Color>((LAPIC::getID() + 1 ));
|
||||
this->reset(' ', CGA::Attribute(CGA::LIGHT_GREEN, fg, false));
|
||||
}
|
||||
|
||||
|
||||
void TextStream::flush() {
|
||||
print(buffer,pos);
|
||||
CGA::Color fg = static_cast<CGA::Color>((LAPIC::getID() + 1 ));
|
||||
print(buffer,pos,CGA::Attribute(CGA::LIGHT_GREEN, fg, false));
|
||||
pos = 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user