Konsole
Screen.h
Go to the documentation of this file.
461 QString text(int startIndex, int endIndex, bool preserveLineBreaks, bool trimTrailingSpaces = false) const;
bool hasScroll() const
Returns true if this screen keeps lines that are scrolled off the screen in a history buffer...
Definition: Screen.cpp:1366
int droppedLines() const
Returns the number of lines of output which have been dropped from the history since the last call to...
Definition: Screen.cpp:741
void deleteChars(int n)
Delete n characters beginning from the current cursor position.
Definition: Screen.cpp:188
QRect lastScrolledRegion() const
Returns the region of the image which was last scrolled.
Definition: Screen.cpp:761
void writeLinesToStream(TerminalCharacterDecoder *decoder, int fromLine, int toLine) const
Copies part of the output to a stream.
Definition: Screen.cpp:1290
void setDefaultRendition()
Resets the cursor's color back to the default and sets the character's rendition flags back to the de...
Definition: Screen.cpp:1001
void scrollDown(int n)
Scroll the scrolling region of the screen down by n lines.
Definition: Screen.cpp:778
void clearToEndOfScreen()
Clear the area of the screen from the current cursor position to the end of the screen.
Definition: Screen.cpp:944
QString selectedText(bool preserveLineBreaks, bool trimTrailingSpaces=false) const
Convenience method.
Definition: Screen.cpp:1110
void clearEntireScreen()
Clear the whole screen, moving the current screen contents into the history first.
Definition: Screen.cpp:954
void getImage(Character *dest, int size, int startLine, int endLine) const
Returns the current screen image.
Definition: Screen.cpp:450
void insertChars(int n)
Insert n blank characters beginning from the current cursor position.
Definition: Screen.cpp:217
const HistoryType & getScroll() const
Returns the type of storage used to keep lines in the history.
Definition: Screen.cpp:1371
void eraseChars(int n)
Erase n characters beginning from the current cursor position.
Definition: Screen.cpp:181
void clearToEndOfLine()
Clears from the current cursor position to the end of the line.
Definition: Screen.cpp:974
void changeTabStop(bool set)
Sets or removes a tab stop at the cursor's current column.
Definition: Screen.cpp:592
void clearEntireLine()
Clears the whole of the line on which the cursor is currently positioned.
Definition: Screen.cpp:984
TerminalDisplay * currentTerminalDisplay()
Definition: Screen.h:569
static void fillWithDefaultChar(Character *dest, int count)
Fills the buffer dest with count instances of the default (ie.
Definition: Screen.cpp:1383
bool getMode(int mode) const
Returns whether the specified screen mode is enabled or not .
Definition: Screen.cpp:274
QString text(int startIndex, int endIndex, bool preserveLineBreaks, bool trimTrailingSpaces=false) const
Convenience method.
Definition: Screen.cpp:1118
void setMargins(int topLine, int bottomLine)
Sets the margins for scrolling the screen.
Definition: Screen.cpp:130
A single character in the terminal which consists of a unicode character value, foreground and backgr...
Definition: Character.h:77
void resetScrolledLines()
Resets the count of the number of lines that the image has been scrolled up or down by...
Definition: Screen.cpp:749
Base class for terminal character decoders.
Definition: TerminalCharacterDecoder.h:45
void clear()
Clear the entire screen and move the cursor to the home position.
Definition: Screen.cpp:541
void setForeColor(int space, int color)
Sets the cursor's foreground color.
Definition: Screen.cpp:1009
void checkSelection(int from, int to)
Checks if the text between from and to is inside the current selection.
Definition: Screen.cpp:619
void displayCharacter(unsigned short c)
Displays a new character at the current cursor position.
Definition: Screen.cpp:629
void setScroll(const HistoryType &, bool copyPreviousScroll=true)
Sets the type of storage used to keep lines in the history.
Definition: Screen.cpp:1353
int scrolledLines() const
Returns the number of lines that the image has been scrolled up or down by, since the last call to re...
Definition: Screen.cpp:737
void newLine()
Moves the cursor down one line, if the MODE_NewLine mode flag is enabled then the cursor is returned ...
Definition: Screen.cpp:611
void toStartOfLine()
Moves the cursor to the beginning of the current line.
Definition: Screen.cpp:825
void setBackColor(int space, int color)
Sets the cursor's background color.
Definition: Screen.cpp:1019
void scrollUp(int n)
Scroll the scrolling region of the screen up by n lines.
Definition: Screen.cpp:754
void insertLines(int n)
Inserts lines beginning from the current cursor position.
Definition: Screen.cpp:236
Describes the color of a single character in the terminal.
Definition: CharacterColor.h:147
void getSelectionStart(int &column, int &line) const
Retrieves the start of the selection or the cursor position if there is no selection.
Definition: Screen.cpp:1036
Definition: History.h:319
void clearToBeginOfLine()
Clears from the current cursor position to the beginning of the line.
Definition: Screen.cpp:979
void deleteLines(int n)
Removes n lines beginning from the current cursor position.
Definition: Screen.cpp:230
int bottomMargin() const
Returns the bottom line of the scrolling region.
Definition: Screen.cpp:151
Screen(int lines, int columns)
Construct a new screen image of size lines by columns.
Definition: Screen.cpp:60
void restoreMode(int mode)
Restores the state of a screen mode saved by calling saveMode()
Definition: Screen.cpp:269
bool isSelected(const int column, const int line) const
Returns true if the character at (column, line) is part of the current selection. ...
Definition: Screen.cpp:1098
void clearToBeginOfScreen()
Clear the area of the screen from the current cursor position to the start of the screen...
Definition: Screen.cpp:949
void setDefaultMargins()
Resets the scrolling margins back to the top and bottom lines of the screen.
Definition: Screen.cpp:341
void getSelectionEnd(int &column, int &line) const
Retrieves the end of the selection or the cursor position if there is no selection.
Definition: Screen.cpp:1046
int getCursorX() const
Returns the column which the cursor is positioned at.
Definition: Screen.cpp:830
void backspace()
Moves the cursor one column to the left and erases the character at the new cursor position...
Definition: Screen.cpp:547
void resizeImage(int new_lines, int new_columns)
Resizes the image to a new fixed size of new_lines by new_columns.
Definition: Screen.cpp:298
int getCursorY() const
Returns the line which the cursor is positioned on.
Definition: Screen.cpp:835
void setSelectionEnd(const int column, const int line)
Sets the end of the current selection.
Definition: Screen.cpp:1067
Definition: History.h:86
void resetDroppedLines()
Resets the count of the number of lines dropped from the history.
Definition: Screen.cpp:745
void setLineProperty(LineProperty property, bool enable)
Sets or clears an attribute of the current line.
Definition: Screen.cpp:1376
void saveCursor()
Saves the current position and appearance (text color and style) of the cursor.
Definition: Screen.cpp:279
void nextLine()
Moves the cursor down one line and positions it at the beginning of the line.
Definition: Screen.cpp:174
void home()
Sets the position of the cursor to the 'home' position at the top-left corner of the screen (0...
Definition: Screen.cpp:819
void setSelectionStart(const int column, const int line, const bool blockSelectionMode)
Sets the start of the selection.
Definition: Screen.cpp:1056
int getHistLines() const
Return the number of lines in the history buffer.
Definition: Screen.cpp:1348
A widget which displays output from a terminal emulation and sends input keypresses and mouse activit...
Definition: TerminalDisplay.h:63
QVector< LineProperty > getLineProperties(int startLine, int endLine) const
Returns the additional attributes associated with lines in the image.
Definition: Screen.cpp:485
void writeSelectionToStream(TerminalCharacterDecoder *decoder, bool preserveLineBreaks=true, bool trimTrailingSpaces=false) const
Copies the selected characters, set using.
Definition: Screen.cpp:1136
void setCurrentTerminalDisplay(TerminalDisplay *display)
Definition: Screen.h:565
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Sat May 9 2020 03:56:27 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2020 The KDE developers.
Generated on Sat May 9 2020 03:56:27 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.