frysk.sys
Class PseudoTerminal

java.lang.Object
  extended by frysk.sys.FileDescriptor
      extended by frysk.sys.PseudoTerminal

public class PseudoTerminal
extends FileDescriptor

Open a pty


Field Summary
 
Fields inherited from class frysk.sys.FileDescriptor
err, in, out, RDONLY, RDWR, WRONLY
 
Constructor Summary
PseudoTerminal()
           
PseudoTerminal(boolean controllingTerminal)
          Open a pseudo-terminal, a.k.a.
 
Method Summary
 ProcessIdentifier addChild(String[] args)
          Convenience method, adds a child process bound to this pseudo-terminal.
 ProcessIdentifier addDaemon(String[] args)
          Convenience method, adds a daemon process bound to this pseudo-terminal.
 File getFile()
          Return the path of the pseudo-terminal's slave.
 String toString()
           
 
Methods inherited from class frysk.sys.FileDescriptor
close, dup, getFd, getInputStream, getOutputStream, getSize, read, read, ready, ready, seekCurrent, seekEnd, seekSet, setSize, write, write
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PseudoTerminal

public PseudoTerminal(boolean controllingTerminal)
Open a pseudo-terminal, a.k.a. pty, not wired to anything.


PseudoTerminal

public PseudoTerminal()
Method Detail

toString

public String toString()
Overrides:
toString in class FileDescriptor

getFile

public File getFile()
Return the path of the pseudo-terminal's slave.


addChild

public ProcessIdentifier addChild(String[] args)
Convenience method, adds a child process bound to this pseudo-terminal.


addDaemon

public ProcessIdentifier addDaemon(String[] args)
Convenience method, adds a daemon process bound to this pseudo-terminal.