MCPcopy Create free account
hub / github.com/KDE/konsole / Screen

Method Screen

src/Screen.cpp:61–111  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

59 Character(' ', CharacterColor(COLOR_SPACE_DEFAULT, DEFAULT_FORE_COLOR), CharacterColor(COLOR_SPACE_DEFAULT, DEFAULT_BACK_COLOR), DEFAULT_RENDITION, 0);
60
61Screen::Screen(int lines, int columns)
62 : _currentTerminalDisplay(nullptr)
63 , _lines(lines)
64 , _columns(columns)
65 , _screenLines(_lines + 1)
66 , _screenLinesSize(_lines)
67 , _scrolledLines(0)
68 , _lastScrolledRegion(QRect())
69 , _droppedLines(0)
70 , _fastDroppedLines(0)
71 , _oldTotalLines(0)
72 , _isResize(false)
73 , _enableReflowLines(false)
74 , _lineProperties(_lines + 1)
75 , _history(std::make_unique<HistoryScrollNone>())
76 , _cuX(0)
77 , _cuY(0)
78 , _currentForeground(CharacterColor())
79 , _currentBackground(CharacterColor())
80 , _currentRendition({DEFAULT_RENDITION})
81 , _ulColorQueueStart(0)
82 , _ulColorQueueEnd(0)
83 , _currentULColor(0)
84 , _topMargin(0)
85 , _bottomMargin(0)
86 , _replMode(REPL_None)
87 , _hasRepl(false)
88 , _replHadOutput(false)
89 , _replLastOutputStart(std::pair(-1, -1))
90 , _tabStops(QBitArray())
91 , _selBegin(0)
92 , _selTopLeft(0)
93 , _selBottomRight(0)
94 , _blockSelectionMode(false)
95 , _effectiveForeground(CharacterColor())
96 , _effectiveBackground(CharacterColor())
97 , _effectiveRendition({DEFAULT_RENDITION})
98 , _lastPos(-1)
99 , _lastDrawnChar(0)
100 , _escapeSequenceUrlExtractor(nullptr)
101 , _ignoreWcWidth(false)
102{
103 std::fill(_lineProperties.begin(), _lineProperties.end(), LineProperty());
104
105 _graphicsPlacements = std::vector<std::unique_ptr<TerminalGraphicsPlacement_t>>();
106 _hasGraphics = false;
107
108 initTabStops();
109 clearSelection();
110 reset();
111}
112
113Screen::~Screen() = default;
114

Callers

nothing calls this directly

Calls 5

CharacterColorClass · 0.85
LinePropertyClass · 0.85
QRectClass · 0.50
beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected