Handout
This commit is contained in:
10
kernel/device/textstream.cc
Normal file
10
kernel/device/textstream.cc
Normal file
@@ -0,0 +1,10 @@
|
||||
#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() {
|
||||
print(buffer, pos);
|
||||
pos = 0;
|
||||
}
|
||||
Reference in New Issue
Block a user