summaryrefslogtreecommitdiff
path: root/noncore/apps/opie-console/MyPty.cpp
Unidiff
Diffstat (limited to 'noncore/apps/opie-console/MyPty.cpp') (more/less context) (show whitespace changes)
-rw-r--r--noncore/apps/opie-console/MyPty.cpp5
1 files changed, 0 insertions, 5 deletions
diff --git a/noncore/apps/opie-console/MyPty.cpp b/noncore/apps/opie-console/MyPty.cpp
index 315ea4a..27ba9ff 100644
--- a/noncore/apps/opie-console/MyPty.cpp
+++ b/noncore/apps/opie-console/MyPty.cpp
@@ -57,28 +57,24 @@
57 those device pairs, which is 256. 57 those device pairs, which is 256.
58 58
59 Another technic are UNIX 98 PTY's. These are supported also, and prefered 59 Another technic are UNIX 98 PTY's. These are supported also, and prefered
60 over the (obsolete) predecessor. 60 over the (obsolete) predecessor.
61 61
62 There's a sinister ioctl(2), signal(2) and job control stuff 62 There's a sinister ioctl(2), signal(2) and job control stuff
63 nessesary to make everything work as it should. 63 nessesary to make everything work as it should.
64*/ 64*/
65 65
66#include "procctl.h" 66#include "procctl.h"
67#include "MyPty.h" 67#include "MyPty.h"
68 68
69/* OPIE */
70#include <opie2/odebug.h>
71using namespace Opie::Core;
72
73/* QT */ 69/* QT */
74#include <qsocketnotifier.h> 70#include <qsocketnotifier.h>
75#include <qfile.h> 71#include <qfile.h>
76 72
77/* STD */ 73/* STD */
78#include <stdlib.h> 74#include <stdlib.h>
79#include <stdio.h> 75#include <stdio.h>
80#include <signal.h> 76#include <signal.h>
81#include <fcntl.h> 77#include <fcntl.h>
82#include <unistd.h> 78#include <unistd.h>
83#include <termios.h> 79#include <termios.h>
84#include <sys/types.h> 80#include <sys/types.h>
@@ -93,25 +89,24 @@ using namespace Opie::Core;
93#undef VERBOSE_DEBUG 89#undef VERBOSE_DEBUG
94 90
95 91
96/* -------------------------------------------------------------------------- */ 92/* -------------------------------------------------------------------------- */
97 93
98/*! 94/*!
99 Informs the client program about the 95 Informs the client program about the
100 actual size of the window. 96 actual size of the window.
101*/ 97*/
102 98
103void MyPty::setSize(int lines, int columns) 99void MyPty::setSize(int lines, int columns)
104{ 100{
105 owarn << "setting size" << oendl;
106 struct winsize wsize; 101 struct winsize wsize;
107 wsize.ws_row = (unsigned short)lines; 102 wsize.ws_row = (unsigned short)lines;
108 wsize.ws_col = (unsigned short)columns; 103 wsize.ws_col = (unsigned short)columns;
109 if(m_fd < 0) return; 104 if(m_fd < 0) return;
110 ioctl(m_fd,TIOCSWINSZ,(char *)&wsize); 105 ioctl(m_fd,TIOCSWINSZ,(char *)&wsize);
111} 106}
112 107
113 108
114void MyPty::donePty() 109void MyPty::donePty()
115{ 110{
116 // This is code from the Qt DumbTerminal example 111 // This is code from the Qt DumbTerminal example
117 112