-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathScreen.h
67 lines (67 loc) · 1.46 KB
/
Screen.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
//#ifndef SCREEN_H
//#define SCREEN_H
//#include <string>
//#include <ostream>
////#include "Window_mgr.h"
//
//class Screen {
//
//
//public:
//
// friend void Window_mgr::clear(LENGTH);
//
// typedef std::string::size_type dim;
//
// Screen()
// :cursor(0), height(0), width(0),contents("")
// {}
// Screen(dim ht, dim wd, dim blnk)
// :cursor(0), height(ht), width(wd), contents(blnk, ' ')
// {}
// Screen(dim ht, dim wd, char& c)
// :cursor(0), height(ht), width(wd), contents(ht * wd, c)
// {}
//
// Screen& set_str(dim row, dim col, std::string& str);
// char get() const
// { return contents[cursor];}
// inline char get(dim row, dim col);
// Screen &move (dim row, dim col);
// Screen &set_char( dim row, dim col, char c);
// Screen &set_char( char);
// Screen &display(std::ostream &os)
// { do_display(os); return *this; }
// const Screen &display(std::ostream &os) const
// {do_display(os); return *this; }
//
//private:
// void do_display(std::ostream &os) const
// { os << contents;}
//
// dim cursor;
// dim height, width;
// std::string contents;
//};
//
//inline Screen &Screen::set_char( char c)
//{
// contents[cursor] = c;
// return *this;
//}
//inline Screen &Screen::set_char( dim row, dim col, char c) {
// contents[row * width + col] = c;
// return *this;
//}
//
//inline Screen &Screen::move(dim row, dim col)
//{
// cursor = row * width + col;
// return *this;
//}
//
//char Screen::get(dim row, dim col) {
// return contents[row * width + col];
//}
//
//#endif