Improve "Undecodable sequence" warnings

Using Qt logging utilities instead of printf so that those warnings
can be enabled/disabled. Those warnings are disabled by default. To
enable them, use QT_LOGGING_RULES="qtermwidget.debug=true".

Also improve the formatting. An example warning:

Undecodable sequence: "\u001B[22;0;0t"

Closes https://github.com/lxqt/qterminal/issues/640
This commit is contained in:
Chih-Hsuan Yen
2020-09-17 00:39:03 +08:00
parent 5b1a15bef8
commit 9a45a56f04
3 changed files with 8 additions and 18 deletions
+2
View File
@@ -5,6 +5,8 @@
#include <QtDebug>
Q_LOGGING_CATEGORY(qtermwidgetLogger, "qtermwidget", QtWarningMsg)
/*! Helper function to get possible location of layout files.
By default the KB_LAYOUT_DIR is used (linux/BSD/macports).
But in some cases (apple bundle) there can be more locations).