Luís Pereira
86cb8acc30
Bump minimum required Qt version to 5.15
...
Part of https://github.com/lxqt/lxqt/discussions/1974 .
2021-04-27 21:20:22 +01:00
Luís Pereira
645a0539f4
Use Qt::endl
2020-12-13 12:23:23 +08:00
Elad Lahav
6ab343131a
Check for successful ioctl() calls by testing that the call did not return -1.
...
There is no reason for a successful call to return 0.
2020-08-17 00:02:01 +08:00
David H. Gutteridge
d0a1fd39b9
Another NetBSD build fix
...
Add a HAVE_OPENPTY definition, and move NetBSD definitions into their own block, for clarity.
2020-04-22 21:52:55 -04:00
Luís Pereira
ab81290ea7
Avoid buffer overflows exploits
...
sprintf() perform unbounded operations. It allows a buffer overflow
exploit.
2020-02-22 18:22:44 +01:00
Luís Pereira
59ac023f60
Drop deprecated QString::sprintf()
...
Made obsolete in Qt5.14.
2020-02-22 18:22:44 +01: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
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
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
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
Elias M. Mariani
b18f71aa93
OpenBSD special case.
...
#define HAVE_LOGIN
#define HAVE_UTIL_H
2018-07-25 17:02:58 -03:00
Mikal Villa
35e5f4141d
Fix build issue related to utmpx in Mac OSX Sierra
2017-08-06 21:36:08 +08:00
Bas Couwenberg
dfebb5a419
Add support for GNU/Hurd to kpty.cpp.
...
The GNU/Hurd porting guidelines document the following:
"
Missing termio.h
Change it to use termios.h (check for it properly with autoconf
HAVE_TERMIOS_H or the __GLIBC__ macro)
Also, change calls to ioctl(fd, TCGETS, ...) and ioctl(fd, TCSETS, ...)
with tcgetattr(fd, ...) and tcsetattr(fd, ...).
"
https://www.gnu.org/software/hurd/hurd/porting/guidelines.html#Missing_termio_h_tt_
2016-05-14 17:41:10 +02:00
Alf Gaida
798e46747b
fixes kfreebsd builds on debian and derivatives
2016-05-14 03:34:40 +02: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
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
b5a79e17aa
patches to build on BSD by Christopher VdoP
2010-10-18 20:49:53 +02:00
Petr Vanek
520661ab6f
Merge branch 'master' of file:///export/home/pvanek/oss/qterm/merge/qtermwidget
...
Conflicts:
lib/BlockArray.cpp
lib/BlockArray.h
lib/CMakeLists.txt
lib/Character.h
lib/CharacterColor.h
lib/Emulation.cpp
lib/Emulation.h
lib/Filter.cpp
lib/Filter.h
lib/History.cpp
lib/History.h
lib/KeyboardTranslator.cpp
lib/KeyboardTranslator.h
lib/Pty.cpp
lib/Pty.h
lib/Screen.cpp
lib/Screen.h
lib/ScreenWindow.cpp
lib/ScreenWindow.h
lib/Session.cpp
lib/Session.h
lib/ShellCommand.cpp
lib/ShellCommand.h
lib/TerminalCharacterDecoder.cpp
lib/TerminalCharacterDecoder.h
lib/TerminalDisplay.cpp
lib/TerminalDisplay.h
lib/Vt102Emulation.cpp
lib/Vt102Emulation.h
lib/k3process.cpp
lib/k3process.h
lib/k3processcontroller.cpp
lib/k3processcontroller.h
lib/konsole_wcwidth.cpp
lib/konsole_wcwidth.h
lib/kpty.cpp
lib/kpty.h
lib/kpty_p.h
lib/qtermwidget.cpp
lib/qtermwidget.h
2010-10-04 11:29:18 +02:00
Petr Vanek
25661234c0
K&R formatting
2010-10-01 16:08:52 +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
Petr Vanek
fea7016206
port to macosx
2010-09-13 12:14:00 +02:00
Petr Vanek
2d6c2b82b7
initial import
2010-09-11 10:50:46 +02:00