• Skip to content
  • Skip to link menu
Trinity API Reference
  • Trinity API Reference
  • tdecore
 

tdecore

  • tdecore
kpty.h
1 /* This file is part of the KDE libraries
2 
3  Copyright (C) 1997-2002 The Konsole Developers
4  Copyright (C) 2002 Waldo Bastian <bastian@kde.org>
5  Copyright (C) 2002-2003 Oswald Buddenhagen <ossi@kde.org>
6 
7  This library is free software; you can redistribute it and/or
8  modify it under the terms of the GNU Library General Public
9  License as published by the Free Software Foundation; either
10  version 2 of the License, or (at your option) any later version.
11 
12  This library is distributed in the hope that it will be useful,
13  but WITHOUT ANY WARRANTY; without even the implied warranty of
14  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15  Library General Public License for more details.
16 
17  You should have received a copy of the GNU Library General Public License
18  along with this library; see the file COPYING.LIB. If not, write to
19  the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
20  Boston, MA 02110-1301, USA.
21 */
22 
23 #ifndef __kpty_h__
24 #define __kpty_h__
25 
26 #include <tqglobal.h>
27 #include <tdelibs_export.h>
28 
29 #ifdef Q_OS_UNIX
30 
31 struct KPtyPrivate;
32 
40 class TDECORE_EXPORT KPty {
41 
42 public:
43 
47  KPty();
48 
55  ~KPty();
56 
62  bool open();
63 
69  bool setPty(int pty_master);
70 
74  void close();
75 
80  void setCTty();
81 
92  void login(const char *user = 0, const char *remotehost = 0);
93 
97  void logout();
98 
106  void setWinSize(int lines, int columns);
107 
115  void setXonXoff(bool useXonXoff);
116 
124  void setUtf8Mode(bool useUtf8);
125 
126 
132  const char *ttyName() const;
133 
139  int masterFd() const;
140 
146  int slaveFd() const;
147 
148 protected:
149  bool _attachPty(int pty_master);
150 
151 private:
152  bool chownpty(bool grant);
153 
154  KPtyPrivate *d;
155 };
156 
157 #endif //Q_OS_UNIX
158 #endif
159 
KPty
Provides a high level representation of a pseudo tty pair, including utmp support.
Definition: kpty.h:40

tdecore

Skip menu "tdecore"
  • Main Page
  • Modules
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members
  • Related Pages

tdecore

Skip menu "tdecore"
  • arts
  • dcop
  • dnssd
  • interfaces
  •   kspeech
  •     interface
  •     library
  •   tdetexteditor
  • kate
  • kded
  • kdoctools
  • kimgio
  • kjs
  • libtdemid
  • libtdescreensaver
  • tdeabc
  • tdecmshell
  • tdecore
  • tdefx
  • tdehtml
  • tdeinit
  • tdeio
  •   bookmarks
  •   httpfilter
  •   kpasswdserver
  •   kssl
  •   tdefile
  •   tdeio
  •   tdeioexec
  • tdeioslave
  •   http
  • tdemdi
  •   tdemdi
  • tdenewstuff
  • tdeparts
  • tdeprint
  • tderandr
  • tderesources
  • tdespell2
  • tdesu
  • tdeui
  • tdeunittest
  • tdeutils
  • tdewallet
Generated for tdecore by doxygen 1.9.1
This website is maintained by Timothy Pearson.