3 // Copyright by Johannes Sixt
4 // This file is under GPL, the GNU General Public Licence
11 class QSocketNotifier
;
15 * This class is cortesy Judin Max <novaprint@mtu-net.ru>.
17 * The master side of the TTY is the emulator.
19 * The slave side is where a client process can write output and can read
20 * input. For this purpose, it must open the file (terminal device) whose
21 * name is returned by @ref slaveTTY for both reading and writing. To
22 * establish the stdin, stdout, and stderr channels the file descriptor
23 * obtained by this must be dup'd to file descriptors 0, 1, and 2, resp.
25 class STTY
: public QObject
32 QString
slaveTTY(){ return m_slavetty
; };
35 void outReceived(int);
38 void output(char* buffer
, int charlen
);
43 QSocketNotifier
* m_outNotifier
;
48 class TTYWindow
: public KTextView
52 TTYWindow(QWidget
* parent
, const char* name
);
60 QPopupMenu
* m_popmenu
;
61 virtual void mousePressEvent(QMouseEvent
* mouseEvent
);
64 void slotAppend(char* buffer
, int count
);