Commit Graph

220 Commits

Author SHA1 Message Date
Ecmel B. CANLIER ac6581e24f Make margin variables non-const to allow modification 2018-09-02 17:31:12 +08:00
titiracoon 540c00ffc3 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/
2018-08-23 18:14:58 +02:00
Rikard Falkeborn 1dbbe6ee27 Mark some functions const 2018-08-12 10:39:35 +08:00
Chih-Hsuan Yen 79407f6bba use openpty() on mac
This commit includes a 10-year-old fix from upstream kpty
https://github.com/KDE/kdelibs/commit/fff22a70fc636eaea3a1443d66641067df01fd28
2018-08-09 21:58:51 +02:00
Luís Pereira c6880070e9 Don't use automatic string conversions
* Disables automatic conversions from 8-bit strings (char *) to unicode
  QStrings.
* Disables automatic conversion from QString to 8-bit strings (char *).
* Disables automatic conversions from QByteArray to const char * or const
  void *.
* Disables automatic conversions from QString (or char *) to QUrl.
* Use QStringBuilder for more efficient string creation.

It make us aware of string and encoding conversions.
2018-08-05 22:09:57 +08:00
Simon Quigley e3adf1abe2 Added translation using Weblate (Welsh) 2018-08-02 16:27:26 +02:00
Elias M. Mariani b18f71aa93 OpenBSD special case.
#define HAVE_LOGIN
#define HAVE_UTIL_H
2018-07-25 17:02:58 -03:00
p-bo ce7c76344d 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/
2018-07-23 12:37:22 +08:00
p-bo f30594db41 Added translation using Weblate (Čeština) 2018-07-23 00:12:21 +08:00
Tsu Jan 3838728c22 Suppress compilation warnings 2018-07-16 17:24:13 +02:00
Alfredo Ramos 8957d5b70a Translated using Weblate (Spanish)
Currently translated at 100.0% (21 of 21 strings)

Translation: LXQt/QTermWidget
Translate-URL: https://weblate.lxqt.org/projects/lxqt/qtermwidget/es/
2018-07-09 16:08:09 +00:00
micrococo 579ffe0c20 Translated using Weblate (Spanish)
Currently translated at 95.2% (20 of 21 strings)

Translation: LXQt/QTermWidget
Translate-URL: https://weblate.lxqt.org/projects/lxqt/qtermwidget/es/
2018-06-30 01:45:12 +02:00
Yen Chi Hsuan 0154e036c7 Rework on memory management of filter-related objects 2018-06-28 12:20:07 +02:00
Oliver Burkardt c101e296b7 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/
2018-06-26 22:31:56 +02:00
Dimitrios Glentadakis 006568764d Translated using Weblate (Greek)
Currently translated at 100.0% (21 of 21 strings)

Translation: LXQt/QTermWidget
Translate-URL: https://weblate.lxqt.org/projects/lxqt/qtermwidget/el/
2018-06-26 11:29:04 +08:00
Alf Gaida ed2efa856c 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/
2018-06-24 14:47:05 +02:00
Yaron Shahrabani e32c307120 Translated using Weblate (Hebrew)
Currently translated at 100.0% (21 of 21 strings)

Translation: LXQt/QTermWidget
Translate-URL: https://weblate.lxqt.org/projects/lxqt/qtermwidget/he/
2018-06-24 14:47:05 +02:00
Dimitrios Glentadakis 380fe40556 Translated using Weblate (Greek)
Currently translated at 100.0% (21 of 21 strings)

Translation: LXQt/QTermWidget
Translate-URL: https://weblate.lxqt.org/projects/lxqt/qtermwidget/el/
2018-06-24 14:47:05 +02:00
Yaron Shahrabani ff2695752d Added translation using Weblate (Hebrew) 2018-06-24 14:47:05 +02:00
r901042004 a41b3630a9 Translated using Weblate (漢語(正體字))
Currently translated at 100.0% (21 of 21 strings)

Translation: LXQt/QTermWidget
Translate-URL: https://weblate.lxqt.org/projects/lxqt/qtermwidget/zh_Hant/
2018-06-24 14:47:05 +02:00
Palo Kisa 728a5c5044 kptyprocess: Give shell some time for finishing 2018-06-13 23:51:34 +02:00
Alf Gaida ee9e1e3566 Added translation using Weblate (German) 2018-06-12 22:59:26 +02:00
Alf Gaida 79ce3f642e Translation update of qtermwidget 2018-06-03 18:07:39 +02:00
Alf Gaida 0622bfaedd Merge in the translations of qtermwidget from lxqt-l10n into qtermwidget-translation-move 2018-06-03 18:07:38 +02:00
Tsu Jan 2b7c2b38ed Take transient scrollbars into account
Fixes https://github.com/lxqt/qterminal/issues/415

Because they are transient by definition (since Qt 5.5), the code should not spare an extra space for them (Konsole does not have this feature).

Apart from that, the code does not need to fill the area behind the scrollbar explicitly; it is enough to auto-fill it.

Naturally, no change will be seen with styles other than Kvantum.
2018-05-06 20:01:48 +02:00
Palo Kisa 4cc05f9899 kptyprocess: Try to terminate the shell process
..in destructor if the process is still running.

This is a workaround and a proper solution should be made on higher
levels (QTerminal?) -> properly try to close the session and optionally
present information from shell about the state.
2018-04-18 17:44:40 +02:00
j0hnnybash 6ac3731329 New color scheme: Ubuntu inspired 2018-04-18 17:44:00 +02:00
Chih-Hsuan Yen 63024751cc Add a comment for potential future breakage 2018-02-28 10:49:41 +01:00
Chih-Hsuan Yen 51dad30fc0 Use wstring in TerminalCharacterDecoder for UCS-4 compatibility
PlainTextDecoder is used in at least clipboard data handling
HTMLDecoder is not used for now
2018-02-28 10:49:41 +01:00
Yen Chi Hsuan c648297792 Support UTF-32 characters correctly
By replacing QString/QChar or quint16 with std::wstring and wchar_t
2018-02-28 10:49:41 +01:00
Chih-Hsuan Yen a7511335f1 Fix "bold and intensive" colors
For example, \e[0;1m\e[90m should give bold gray texts. It gave black.

Quick notes:
0 => reset all attributes
1 => use bold. In popular implementations (VTE3 & konsole), it also
changes a normal color to an intense color
90 => color0, intense; usually gray

This is already fixed in konsole:
https://github.com/KDE/konsole/commit/771b4b22289d928f77d0a3bda9762b8137f2407c

I happen to use the same function name :)
2018-02-16 18:30:36 +01:00
Selivanov Pavel 884ac45975 New color scheme: Tango (#167)
* Create Tango.colorscheme

* Update Tango.colorscheme

* Update Tango.colorscheme

* Update Tango.colorscheme
2018-02-12 20:32:38 +08:00
Chih-Hsuan Yen 733f4b6e8f Finish SGR mouse protocol (1006)
Some codes in https://github.com/KDE/konsole/commit/c83e7b638dcc42b617a067e6dc23686eccf23b00
are missing. Backport all of them.

Fixes #164
2018-02-06 18:07:19 +01:00
Zang MingJie 1d4ddc8afd Expose bracket text function 2018-01-13 03:10:31 +01:00
Luís Pereira ba85185c40 Drop Qt foreach.
Replaced with the ranged-for loop.
Using QT_NO_FOREACH to enforce it.
Qt 5.7.1 required.
2018-01-12 20:16:19 +01:00
BlahGeek 02e1ea9702 Expose terminal size hint API 2017-12-10 16:26:56 +01:00
Safa Alfulaij 87c3d9cfa6 Remove class name 2017-12-10 16:15:35 +01:00
Safa AlFulaij 26a3c17960 Return something 2017-12-10 16:15:35 +01:00
Safa AlFulaij 55393cd695 Expose bidi option 2017-12-10 16:15:35 +01:00
Yen Chi Hsuan 8a3a9a40cb Fix behavior of scroll up (SU)
This is a backport of https://github.com/KDE/konsole/commit/7ff23512fd6c6af1dba87083446f85baf75e9c71
2017-12-09 18:46:06 +01:00
hoxnox 1da2661dc5 FIX: #46 fix vertical font truncation 2017-10-21 17:43:27 +02:00
Yen Chi Hsuan 7173ef7ae2 Really fallback to /bin/sh when $SHELL is missing or invalid
Also add a warning

Closes https://github.com/lxde/qterminal/issues/354
2017-10-15 13:19:03 +02:00
Yen Chi Hsuan 60221dae4c Support REP escape sequence defined in ECMA-48, section 8.3.103
Since ncurses 20170729, supporting REP is necessary for terminals with
xterm compatibility (TERM=xterm or similar). This patch fixes layout
issues with htop. [1]

[1] http://lists.gnu.org/archive/html/bug-ncurses/2017-08/msg00051.html
2017-09-10 21:18:58 +08:00
Mikal Villa 35e5f4141d Fix build issue related to utmpx in Mac OSX Sierra 2017-08-06 21:36:08 +08:00
Yen Chi Hsuan 880b3bcd6c Remove the deprecation notice
Keep everything in QTermWidget class. Confusing users with Konsole
namespace sounds a bad idea.
2017-07-21 19:51:55 +02:00
Yen Chi Hsuan 3e7f8d7875 Handle DECSCUSR signals 2017-07-21 19:51:55 +02:00
Donnie West ab8a62fce6 This commit allows the consumer of qtermwidget to capture the (#111)
profileChanged signal and receive all of the settings change escape
codes

Fixes #110
2017-04-24 21:41:48 +02:00
Yen Chi Hsuan 443040dd24 Allow the terminal display to be smaller than the size hint (#123)
Fixes https://github.com/lxde/qterminal/issues/288
2017-04-24 21:27:20 +02:00
Donnie West d84849b04b Backport Vt102 emulation fixes (#113)
Also pull in KeyboardTranslator and Character updates
2017-04-24 21:26:56 +02:00
Donnie West 934107ae7d Backport the default.keytab from Konsole
Fixes #103 and corrects other key bindings
2017-04-24 13:38:36 -05:00