2 * Copyright Johannes Sixt
3 * This file is licensed under the GNU General Public License Version 2.
4 * See the file COPYING in the toplevel directory of the source directory.
10 #include <q3textedit.h>
11 #include <Q3PopupMenu>
13 class QSocketNotifier
;
17 * This class is cortesy Judin Max <novaprint@mtu-net.ru>.
19 * The master side of the TTY is the emulator.
21 * The slave side is where a client process can write output and can read
22 * input. For this purpose, it must open the file (terminal device) whose
23 * name is returned by @ref slaveTTY for both reading and writing. To
24 * establish the stdin, stdout, and stderr channels the file descriptor
25 * obtained by this must be dup'd to file descriptors 0, 1, and 2, resp.
27 class STTY
: public QObject
34 QString
slaveTTY(){ return m_slavetty
; };
37 void outReceived(int);
40 void output(char* buffer
, int charlen
);
45 QSocketNotifier
* m_outNotifier
;
50 class TTYWindow
: public Q3TextEdit
54 TTYWindow(QWidget
* parent
);
62 virtual Q3PopupMenu
* createPopupMenu(const QPoint
& pos
);
63 int m_hPos
; //!< tracks horizontal cursor position
66 void slotAppend(char* buffer
, int count
);