From 7670ffdf4256579ab6266c2593667413618477ca Mon Sep 17 00:00:00 2001 From: Simon Date: Tue, 22 Apr 2025 14:18:25 +0200 Subject: [PATCH] TextStream Constructor added --- device/textstream.cc | 21 +++++++++++++-------- device/textstream.h | 7 +++++++ 2 files changed, 20 insertions(+), 8 deletions(-) diff --git a/device/textstream.cc b/device/textstream.cc index bc8579e..a3e93a6 100644 --- a/device/textstream.cc +++ b/device/textstream.cc @@ -1,12 +1,17 @@ #include "textstream.h" -TextStream::TextStream(unsigned from_col, unsigned to_col, unsigned from_row, - unsigned to_row, bool use_cursor) { - (void)from_col; - (void)to_col; - (void)from_row; - (void)to_row; - (void)use_cursor; -} +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_(false) + +{} + void TextStream::flush() {} diff --git a/device/textstream.h b/device/textstream.h index 7cce382..f5fb1ff 100644 --- a/device/textstream.h +++ b/device/textstream.h @@ -38,4 +38,11 @@ class TextStream { * \todo(11) Implement method */ void flush(); + + private: + unsigned from_col_; + unsigned to_col_; + unsigned from_row_; + unsigned to_row_; + bool use_cursor_; };