From 0e815587c0075b8d9ee6ded57add8230f52bceb6 Mon Sep 17 00:00:00 2001 From: Lars Doelle Date: Sun, 31 Jan 1999 05:11:39 +0000 Subject: [PATCH] Solaris adjustment. svn path=/trunk/kdebase/konsole/; revision=16214 --- CONTRIBUTORS | 2 +- ChangeLog | 2 ++ src/TEShell.C | 13 ++++++++++++- 3 files changed, 15 insertions(+), 2 deletions(-) diff --git a/CONTRIBUTORS b/CONTRIBUTORS index bd2c44ec..0e2924ce 100644 --- a/CONTRIBUTORS +++ b/CONTRIBUTORS @@ -1,4 +1,4 @@ -CONTRIBUTORS +CONTRIBUTORS. See ChangeLog also - Warwick Allison - 16 color SGR codes (xterm-83) diff --git a/ChangeLog b/ChangeLog index afea4465..873320bd 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,5 @@ +30 Jan 1998 Kyle Haight +- Solaris 2.6 adjustment 30 Jan 1998 Warwick Allison - character classes (removing word_characters code) - "word" selection based on character classes diff --git a/src/TEShell.C b/src/TEShell.C index 9344879d..9d9f264c 100644 --- a/src/TEShell.C +++ b/src/TEShell.C @@ -44,6 +44,11 @@ #include #endif +#ifdef HAVE_SYS_STROPTS_H +#include +#define _NEW_TTY_CTRL +#endif + #include #include #include @@ -103,7 +108,13 @@ void Shell::makeShell(const char* dev, QStrList & args, { int sig; char* t; // open and set all standard files to master/slave tty int tt = open(dev, O_RDWR | O_EXCL); - + + // Solaris apparently needs this +#if defined(SVR4) || defined(__SVR4) + ioctl(tt, I_PUSH, "ptem"); + ioctl(tt, I_PUSH, "ldterm"); +#endif + //reset signal handlers for child process for (sig = 1; sig < NSIG; sig++) signal(sig,SIG_DFL);