Commit Graph

49 Commits

Author SHA1 Message Date
lovecraft 609de21106 More Fixes 2026-05-04 22:25:48 +02:00
lovecraft e6bda0c239 Windows port: ConPTY via ptyqt, POSIX guards 2026-05-04 16:23:23 +02:00
Filippo Scognamiglio a42fa8bf95 Merge changes from upstream 0.17.0 branch. 2021-06-06 18:26:35 +02:00
Luís Pereira 4dd62f8a87 Make some member functions const 2021-05-07 10:56:05 +08:00
Chih-Hsuan Yen 71f8049760 Properly implement the "Action after paste" feature
Scroll to end only when data is not from pasting

Fixes https://github.com/lxqt/qterminal/issues/43
Fixes https://github.com/lxqt/qterminal/issues/741
2021-01-09 00:23:35 +08:00
Luís Pereira 62be87604c Use QProcess::processId()
KProcess::pid() can be dropped and just use QProcess::processId()
2020-12-13 12:47:04 +08:00
rbn42 8fa2366ed9 Expose current session dir (#15)
* expose the current working directory

* test current dir interface

Co-authored-by: rbn42 <bl100@students.waikato.ac.nz>
2020-05-06 16:31:18 +02:00
Luís Pereira 59ac023f60 Drop deprecated QString::sprintf()
Made obsolete in Qt5.14.
2020-02-22 18:22:44 +01:00
Pavel Shlyak 1269679b61 Session.cpp: simplify logical expression 2019-09-22 08:36:38 +02:00
Gary Wang b4b11ae719 feat: add sendKeyEvent() api 2019-08-17 20:46:44 +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
Filippo Scognamiglio c8e418a164 Merge remote-tracking branch 'upstream/master' into unstable 2018-10-16 00:18:25 +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
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 3e7f8d7875 Handle DECSCUSR signals 2017-07-21 19:51:55 +02:00
Palo Kisa d44e3ede69 qtermwidget: Unify title & icon propagation 2016-07-26 15:00:31 +02:00
Petr Vanek 5ebc2c0780 Merge pull request #71 from f2404/70_assert
Avoid including source files names into the library binary
2016-05-25 09:13:53 +02:00
Petr Vanek c576cf0dc9 Merge pull request #60 from f2404/48_bracketed_input
Bracketed paste mode implementation
2016-05-25 09:10:46 +02:00
Igor 507adb9061 Remove __FILE__ macros 2016-05-16 12:59:18 +03:00
Igor fa2476bbc5 Replace assert() with Q_ASSERT() 2016-05-16 12:59:18 +03:00
Jerome Leclanche ec775e3450 Remove noisy qDebugs 2016-04-02 20:08:38 +03:00
Michael Spencer 72d6ce3b46 Properly initialize the _foregroundProcessInfo and _foregroundPid fields 2016-02-05 18:57:43 -06:00
Michael Spencer 21334dac00 Add support for getting the name of the foreground process 2016-02-05 18:03:59 -06:00
Igor c472676560 Bracketed paste mode implementation 2016-02-01 19:26:39 +03:00
Jerome Leclanche 90008c9db9 Remove support for Qt <= 5.4 2015-11-22 14:55:41 +02:00
Paulo Lieuthier 186b8eaba7 Sort out terminal resizing 2015-11-06 09:13:21 -03:00
Paulo Lieuthier 0ae52e5bf3 Enable terminal resizing from the emulator
The pieces were all already there, but not connected.
2015-11-05 17:39:54 -03:00
Adrian Kummerlaender 62a80634fa Emit finished signal even on non-normal exits
This is a followup to 7932e3a as it would otherwise be hard to detect processes
terminated by internally or externally sent signals.

Without this patch the widget continues to operate as if nothing has changed without offering a way to react to the termination from within the application.
2015-09-04 21:53:29 +02:00
Jerome Leclanche 72ffc262eb Clean up trailing whitespaces 2015-07-09 20:22:48 +02:00
Petr Vanek da6838df1a Merge pull request #44 from F1ash/master
implemented start TTY for external recipient;
2015-02-25 13:57:07 +01:00
F1ash 7c315942d3 implemented start TTY for external recipient; 2015-02-22 17:47:47 +03:00
Petr Vanek 14ed5e0801 Merge pull request #39 from F1ash/master
add method for get pty slave fd;
2015-02-05 11:32:07 +01:00
Petr Vanek 436ddc2fb5 Merge pull request #37 from raboof/allowContinuousActivityMonitoring
Set the '_notifiedActivity' flag early
2015-02-05 10:25:15 +01:00
F1ash 109ee5796f add method for get pty slave fd; 2015-01-18 14:49:07 +03:00
F1ash 96cccdfb7d add method for get pty slave fd; 2015-01-18 14:17:08 +03:00
Arnout Engelen 2ec7abf56e Set the '_notifiedActivity' flag early
This way anyone listening to 'activity' signals can safely re-set the flag to
'false' by calling setMonitorActivity(true) again. Right now this is not
guaranteed as the signal is handled asynchonously (and indeed in my PyQT-based
application the signal would be handled *before* the flag is set to 'true'...)
2014-12-07 18:15:14 +01:00
0xd34df00d 4ae1e1177f Avoid calling winId() on Qt5.
Avoids breaking QQuickWidget and the likes. See:
* https://bugreports.qt-project.org/browse/QTBUG-41779
* https://bugreports.qt-project.org/browse/QTBUG-40765
* https://bugreports.qt-project.org/browse/QTBUG-41942
2014-12-06 02:04:35 +03:00
Filippo Scognamiglio 1ad682a387 Disable visibility check. It still causes issues when window is hidden. 2014-12-02 11:41:49 +01:00
Filippo Scognamiglio e9ee4c9091 Actual QML port, moved from QWidget to QQuickPaintedItem. Setup of the project, added sample test-app. 2014-11-06 01:51:23 +01:00
0xd34df00d 9e1247d4b3 Emit activity() and silence() signals instead of KNotification. 2014-06-14 17:20:18 +04:00
Petr Vanek 5d3ef34cc2 fixed #11 compile against Qt 5 (Qt4 and Qt5 supported and waguely tested) 2014-04-11 21:28:52 +02:00
Chris Mueller dd471e5391 Fix missing cleanup for temporary history files
QTermWidget only add the TerminalDisplay to qt's owner hierarchy for
automatic cleanup. With each new tab a new Session object will be
created and but never deleted (which would cleanup internally the
history files).

This bugfix simple adds to each Session's parent relationship the
corresponding QTermWidget.
2013-10-11 00:18:10 +02:00
Petr Vanek fd13aac13e arguments work correctly for custom shells too 2011-07-07 00:47:02 +02:00
Petr Vanek 6ad5d7070a merge changes from the experimental "bundle" repository 2011-06-22 13:12:21 +02:00
Petr Vanek 4183368397 code reformatted after resync 2010-10-25 16:34:14 +02:00
Petr Vanek 454a8befcd correct shell detection (BSD, Christopher VdoP) 2010-10-19 09:35:23 +02:00
Petr Vanek 57fd23bf39 K&R formatting 2010-10-01 16:08:14 +02:00
Petr Vanek 88b5a11bb4 merge with qscite 2010-10-01 15:54:31 +02:00