Commit Graph

299 Commits

Author SHA1 Message Date
Alf Gaida 552e85cd35 Bumped minor version to 9 2018-05-20 21:48:35 +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
Luís Pereira 927852adbe CMake: Prevent in-source builds 2018-05-06 17:22:07 +02:00
Luís Pereira 3ba895f573 Refactor and fixes Python binding
Python binding was broke since commit b1f37a8.
This is a fix and to some degree a refactor.
The binding build is now integrated. Controlled by the CMake
QTERMWIDGET_BUILD_PYTHON_BINDING option.

CMake components taken from https://cgit.kde.org/pykde5.git/. No need to
reinvent the wheel.

Closes https://github.com/lxqt/qtermwidget/issues/135.
2018-04-29 20:51:22 +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
Alf Gaida f951365fc0 Fixed some github pathes in uris 2018-03-26 18:21:24 +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
Chih-Hsuan Yen d28208d889 Fix build of example with latest lxqt-build-tools 2018-01-31 13:03:51 +00: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 acf6556712 Revert deletions in .sip file 2017-12-10 16:26:56 +01:00
BlahGeek 7c78fa8c1d fix python bindings 2017-12-10 16:26:56 +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
RiddleSomebody f635891070 Add an example for remote terminal 2017-12-10 14:26:38 +01:00
Luís Pereira 895e90eb0a Makes the use of libutempter optional
It introduces a CMake option variable called QTERMWIDGET_USE_UTEMPTER.
Defaults to OFF.
This library is used mainly in FreeBSD systems.
2017-12-09 18:51:11 +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
Alf Gaida dc7a868f99 Install cmake files in LIBDIR as they are architecture dependend
fixes lxde/qtermwidget/issues/147
2017-11-03 15:18:25 +00:00
Olivier Duchateau d1c91f681a Check if utempter.h header exists (mainly for FreeBSD) 2017-10-28 21:51:36 +08:00
Michael Vetter 073d7df20b Need lxqt-build-tools 0.4.0 2017-10-26 01:47:34 +08:00
Alf Gaida 1e00757da6 Release 0.8.0: Update changelog 2017-10-21 21:01:23 +02:00
hoxnox 1da2661dc5 FIX: #46 fix vertical font truncation 2017-10-21 17:43:27 +02:00
Alf Gaida 407da14c28 bump versions 2017-10-19 16:30:15 +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
Michael Vetter a057bf5abf README: don't recommend building from source 2017-10-14 17:44:53 +02:00
Michael Vetter f9bb5a4ea7 Improve README 2017-10-14 17:16:48 +02:00
Alf Gaida 4cc880a87e Don't export github templates 2017-09-24 19:05:29 +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
Alf Gaida 7677d1bbaf Copied issue template
refs lxde/lxqt/issues/1322
2017-07-08 23:48:18 +02:00
Yen Chi Hsuan 2f473c4ed2 Update building instructions 2017-05-19 22:57:22 +08:00
Yen Chi Hsuan a021195e93 Require Qt 5.6+
5.6+ is necessary since #122
2017-05-19 22:57:22 +08: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
Yen Chi Hsuan 075e355faf Merge pull request #109 from DonnieWest/backportKeytab
Backport the default.keytab from Konsole
2017-04-25 02:54:02 +08: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
Luís Pereira 3ce71a3650 Fixes (#122)
* Prevent a possible C++11 range for detach

The solution with Qt>=5.7 is to use the qAsConst() macro.
But the qAsConst macro is just a const_cast to const T&.

* Don't call QByteArray::operator[]() on temporary

Just use the QByteArray::at().

* Adds missing reference in foreach

That's an non non trivial type (QString), using a reference as no drawbacks
and it performs better.

* Use QStringList::constFirst()

Drop QStringList::first(). It's faster and we might avoid detaching a
temporary.

* Don't call QList::operator[]() on temporary objects

It's not what we want. The at operator and QList::value() do the job in the
right way.

* Stops allocating an unneeded temporary container

We were allocating an temporary container (_entries.values(keyCode)) which
implies an extra iteration also.
Now we don't use any temporary container and only perform one iteration.
2017-04-22 11:55:16 +02:00
Yen Chi Hsuan 1f7f9f8b8d Merge pull request #114 from pawelkoston/master
Update PyQt5 bindings
2017-03-27 15:28:03 +08:00
Paweł Kostoń 6b0af2e5be Updated README, Added support for PyQT 5.7
PEP8
2017-03-21 17:22:19 +01:00