Add support for copying HTML formatted text from terminal

Currently, only text is supported - this add HTML

Thanks to Anonymous Koavohv koavohv gmail com

REVIEW: 119914
This commit is contained in:
Kurt Hindenburg
2014-10-04 11:57:54 -04:00
parent b6304bcc59
commit abb83e8ef0
5 changed files with 41 additions and 17 deletions

View File

@@ -120,9 +120,9 @@ QVector<LineProperty> ScreenWindow::getLineProperties()
return result;
}
QString ScreenWindow::selectedText(bool preserveLineBreaks, bool trimTrailingSpaces) const
QString ScreenWindow::selectedText(bool preserveLineBreaks, bool trimTrailingSpaces, bool html) const
{
return _screen->selectedText(preserveLineBreaks, trimTrailingSpaces);
return _screen->selectedText(preserveLineBreaks, trimTrailingSpaces, html);
}
void ScreenWindow::getSelectionStart(int& column , int& line)