Commit Graph

273 Commits

Author SHA1 Message Date
p-bo fc74642060 Translated using Weblate (Czech)
Currently translated at 100.0% (21 of 21 strings)

Translation: LXQt/QTermWidget
Translate-URL: https://weblate.lxqt.org/projects/lxqt/qtermwidget/cs/
2019-09-22 07:48:28 +02:00
Dmitry Matrokhin 9b12c21246 Fix flickering on font change
Root cause:
When font is changed paintEvent is called and we draw text "Mq" to
calculate font height. Then on next paintEvent we draw original content.
Since it's done in 2 steps we get flickering.
Fix:
Do calculating and redrawing in 1 step.
2019-08-17 20:49:13 +02:00
Gary Wang b4b11ae719 feat: add sendKeyEvent() api 2019-08-17 20:46:44 +02:00
Masamichi Ito e9df291361 Translated using Weblate (Japanese)
Currently translated at 100.0% (21 of 21 strings)

Translation: LXQt/QTermWidget
Translate-URL: https://weblate.lxqt.org/projects/lxqt/qtermwidget/ja/
2019-08-17 15:39:16 +02:00
David H. Gutteridge 0b6b5c8bec Fix compilation on NetBSD
Like OpenBSD, NetBSD has util.h, not libutil.h.
2019-07-31 21:51:47 +08:00
BlahGeek 88e57a57fc Use QRectF for cursor drawing, fix artifacts in hidpi 2019-07-15 22:39:40 +02:00
Chih-Hsuan Yen 64fef7ab3c Allow to disable drawing line chars 2019-07-15 22:39:00 +02:00
Yen Chi Hsuan 4ffd19203a Fix numpad handling and add entries for numpad 5
KP_Clear is mapped from numpad 5 on non-Apple keyboards according to Qt
doc [1]. It's mapped from KP_Begin from XKB on X11.

Tests: with numlock off,

numpad 5 => "\e[OE"
Ctrl + numpad 5 => "\e[1;5E"
Alt + numpad 5 => "\e[1;3E"
Shift + numpad 5 => "5"

These results are the same as VTE3 0.56.3. On xterm 346, Shift + numpad
5 generates "\eO2u". However, Qt returns 5 instead of KP_Clear if Shift
is hold even with numlock off, so implementing Shift + numpad 5 might be
rather complicated. As a side note, shifted keypad sequences can be
found in emacs sources [2].

Note that on Wayfire (wlroots-based Wayland compositor), numpad 5 with
numlock off generates an event without Qt::KeypadModifier. Further
investigation needed.

Ref: https://github.com/lxqt/qtermwidget/issues/117

[1] https://doc.qt.io/qt-5/qt.html#Key-enum
[2] https://github.com/emacs-mirror/emacs/blame/master/lisp/term/xterm.el
2019-07-15 22:38:35 +02:00
Chih-Hsuan Yen 0d9c8cf0b5 Colons support in RGB definition
With this patch, non-color sequences using colons are also accepted. I
consider such sequences undefined behavior, though.

Closes https://github.com/lxqt/qterminal/issues/78
2019-07-15 21:07:20 +02:00
mscdex f4a3a6ac3f Announce truecolor support via COLORTERM 2019-07-15 21:06:08 +02:00
Chih-Hsuan Yen 2cb98f24b7 Don't set the selection clipboard if it's unsupported
Or there are warnings on macOS and Wayland. For example,

> Data set on unsupported clipboard mode. QMimeData object will be deleted.
2019-07-15 21:05:11 +02:00
Ma. Ito c10951b97c Translated using Weblate (Japanese)
Currently translated at 100.0% (21 of 21 strings)

Translation: LXQt/QTermWidget
Translate-URL: https://weblate.lxqt.org/projects/lxqt/qtermwidget/ja/
2019-06-25 13:40:43 +08:00
Anders Bakken 5637ea1e5e Add QTermWidget::saveHistory
This enables an application to implement the functionality of easily
opening the entire history as a file in your favorite editor.
2019-06-21 12:44:08 +08:00
Tsu Jan 3467ff6482 Completed the support for transient scrollbars
Transient scrollbars don't take space but that wasn't considered in a small part of the code. This patch completes https://github.com/lxqt/qtermwidget/commit/2b7c2b38edd69613f5c1ec67958c18f438d27e4f

I encountered a small problem during a big compilation (qt), made and applied the patch and, by chance, had another big compilation (qtcreator) afterward. The test was successful, as expected.
2019-05-18 23:26:22 +08:00
Luís Pereira ab49998a39 Use class instead of struct
TermWidgetImpl fits a Implementation class use.
2019-05-02 20:02:17 +08:00
eltonfabricio10 6947f7fc31 Translated using Weblate (Portuguese (Brazil))
Currently translated at 100.0% (21 of 21 strings)

Translation: LXQt/QTermWidget
Translate-URL: https://weblate.lxqt.org/projects/lxqt/qtermwidget/pt_BR/
2019-04-28 17:25:58 +02:00
Zang MingJie fcf0ebc498 Fix TerminalDisplay::getCharacterPosition memory access violation
Fix: lxqt/qtermwidget#266
2019-04-22 22:03:02 +08:00
Luís Pereira b87de89767 Use braced initializer list in returns
Replaces explicit calls to the constructor in a return with a braced
initializer list.
2019-04-13 15:49:15 +02:00
Luís Pereira 5e44880a70 Port to C++ bool literals 2019-04-13 15:49:15 +02:00
Luís Pereira 2110583a39 Port towards C++ headers 2019-04-13 15:49:15 +02:00
Luís Pereira b8906f6b0c Port towards C++11 nullptr 2019-04-13 15:49:15 +02:00
Luís Pereira 1e634114a3 Port towards C++11 override 2019-04-13 15:49:15 +02:00
Davi Lopes 8f1b40b55f Added translation using Weblate (Portuguese (Brazil)) 2019-04-07 09:58:56 +02:00
Andrew Janke 5ce909cbc2 Swap Qt::ControlModifier and Qt::MetaModifier on Mac
This is because their meaning is different there.
See https://doc.qt.io/qt-5/qt.html#KeyboardModifier-enum
2019-03-21 11:02:14 +08:00
Andrew Janke fa4a1bad42 Fix default font on macOS
Qt does not support fontconfig on macOS, so we need to work around it and
provide a "real" font family name for the default font. Otherwise, "Monospace"
will be unrecognized and it will fall back to a variable-width font.
2019-03-10 14:26:09 +08:00
roxfr 3ee4927bad Translated using Weblate (French)
Currently translated at 100.0% (21 of 21 strings)

Translation: LXQt/QTermWidget
Translate-URL: https://weblate.lxqt.org/projects/lxqt/qtermwidget/fr/
2019-03-05 23:13:19 +08:00
Andrew Janke 0086b184bf KPty: Don't conditionalize chownpty existence on HAVE_OPENPTY
This fixes the build on Mac, which is the only place where HAVE_OPENPTY
is actually defined.
2019-03-05 22:59:08 +08:00
Sérgio Marques 5a9a575d04 Translated using Weblate (Portuguese)
Currently translated at 100.0% (21 of 21 strings)

Translation: LXQt/QTermWidget
Translate-URL: https://weblate.lxqt.org/projects/lxqt/qtermwidget/pt/
2019-02-25 21:25:53 +01:00
eltonfabricio10 d59fabcfdd Translated using Weblate (Portuguese)
Currently translated at 100.0% (21 of 21 strings)

Translation: LXQt/QTermWidget
Translate-URL: https://weblate.lxqt.org/projects/lxqt/qtermwidget/pt/
2019-02-02 19:16:31 +01:00
Ayhan YALÇINSOY PhD. (Dr.) edf61c9877 Translated using Weblate (Turkish)
Currently translated at 100.0% (21 of 21 strings)

Translation: LXQt/QTermWidget
Translate-URL: https://weblate.lxqt.org/projects/lxqt/qtermwidget/tr/
2019-02-02 19:16:31 +01:00
Ayhan YALÇINSOY PhD. (Dr.) 4d11b7bdef Translated using Weblate (Turkish)
Currently translated at 100,0% (21 of 21 strings)

Translation: LXQt/QTermWidget
Translate-URL: https://weblate.lxqt.org/projects/lxqt/qtermwidget/tr/
2019-02-02 19:16:31 +01:00
Pavel Shlyak 3da204b68d Cleanup KeyboardTranslator.cpp
The value is assigned twice. Seems to be unnecessary :)
2019-01-20 14:17:43 +01:00
Chih-Hsuan Yen b09e1d4882 Revert "Rework on memory management of filter-related objects"
This reverts commit 0154e036c7.
2019-01-14 13:17:00 +08:00
Ettore Atalan f475050f38 Translated using Weblate (German)
Currently translated at 100.0% (21 of 21 strings)

Translation: LXQt/QTermWidget
Translate-URL: https://weblate.lxqt.org/projects/lxqt/qtermwidget/de/
2019-01-01 17:02:03 +01:00
Einar Mostad 77f700c5fb Translated using Weblate (Norwegian Bokmål)
Currently translated at 100.0% (21 of 21 strings)

Translation: LXQt/QTermWidget
Translate-URL: https://weblate.lxqt.org/projects/lxqt/qtermwidget/nb_NO/
2018-12-27 17:03:41 +08:00
Alf Gaida fa2b2b3437 translation update 2018-12-10 22:32:26 +01:00
Shlyak Pavel c1e94c94df Remove unnecessary checks 2018-12-10 01:18:54 +01:00
Miguel A. Bouzada 1cffced5a2 Translated using Weblate (Galician)
Currently translated at 100.0% (21 of 21 strings)

Translation: LXQt/QTermWidget
Translate-URL: https://weblate.lxqt.org/projects/lxqt/qtermwidget/gl/
2018-11-18 20:32:27 +01:00
Miguel A. Bouzada 29a5181bc4 Added translation using Weblate (Galician) 2018-11-18 20:32:27 +01:00
Alf Gaida 1bb95711bb Set cmake_minimum_required(VERSION 3.1.0 FATAL_ERROR)
Removed CMAKE_BUILD_TYPE
2018-11-18 20:11:21 +01:00
Tsu Jan 13fe22aac4 Correct deleting of HotSpot list items
Fixes https://github.com/lxqt/qterminal/issues/504
2018-11-06 23:07:12 +01:00
Einar Mostad 6fb3b06575 Added translation using Weblate (Norwegian Bokmål) 2018-10-25 00:51:20 +02:00
Denis Rouzaud 54bcaddab7 fix local variable will be copied despite being returned by name (#221)
* fix local variable will be copied despite being returned by name

error when building with clang 7

* Fix error return-std-move

std::move should not be used here because
it prevents RVO (copy elision) and it's
considered an anti-pattern.

To fix the original warning the returned
type must match the declared return
type or copy elision will not be possible
(and the warning will be triggered).

* Update ColorScheme.cpp
2018-10-15 11:30:40 +08:00
Tsu Jan 871d069b8b Fix visual glitches in search-bar
Closes https://github.com/lxqt/qterminal/issues/249
2018-10-09 22:50:26 +02:00
Chih-Hsuan Yen 8374bf9d31 Redraw cursor after cursor type changed (closes #161) 2018-10-09 22:49:27 +02:00
Chih-Hsuan Yen b5da2e2dac Make Backspace behaves the same as xterm
Fixes https://github.com/lxqt/qtermwidget/issues/1

Notes about other terminals:

Konsole:
^? for backspace and ^H for ctrl+backspace

Gnome Terminal (VTE3):
- ^? for backspace and ^H for ctrl+backspace by default, and
- ^H for backspace and ^? for ctrl+backspace if the option
  "Backspace key generates:" is set to "Control-H"
2018-09-30 17:39:05 +02:00
Chih-Hsuan Yen b8df480d60 Drop the ability to bundle kb-layouts and colorschemes 2018-09-30 01:25:44 +02:00
Chih-Hsuan Yen ec25b71ea1 Fix handling of ST (String Terminator) for OSC (Operating System Commands)
This is an improvement over a combination of

https://github.com/KDE/konsole/commit/7a41b73b46d1f774e82eb64a8b66920e411ccd3c
https://github.com/KDE/konsole/commit/d547d1d177bd0582df95a5d50dc3b37e0636748e

Fixes https://github.com/lxqt/qtermwidget/issues/163
Fixes https://github.com/lxqt/qtermwidget/issues/212
2018-09-30 01:22:31 +02:00
Tsu Jan 1e7e494229 Fixed link mouseover after recent changes
Closes https://github.com/lxqt/qtermwidget/issues/213, closes https://github.com/lxqt/qtermwidget/issues/209, supercedes https://github.com/lxqt/qtermwidget/pull/211

Also, @agaida's fix for an old issue in link mouseover is included.
2018-09-23 00:52:53 +02:00
Alf Gaida 6d1be93f68 Updated translations with lxqt-transupdate 2018-09-02 23:20:23 +02:00