06321bd308
The use case for this functionality is to be able to e.g. display the terminal application's output after it was terminated. This requires exposing a `clearScreen` method to QML as the history only contains the lines not currently displayed in the widget. If we want to access the whole output we have to be able to flush the screen beforehand. The single argument overload of `Emulation::writeToStream` simplifies reading the complete history at once without having to further expose it's length.
lib.pro is a *.pro-file for qmake It produces static lib (libqtermwidget.a) only. For creating shared lib (*.so) uncomment "dll" in "CONFIG" line in *.pro-file Library was tested both with HAVE_POSIX_OPENPT and HAVE_GETPT precompiler directives, defined in "DEFINES" line. You should select variant which would be correct for your system.