#### PyKDE - Python Bindings for KDE

# class PtyProcess |
Table of contents
Modules
kdesu Classes
All Classes

Module | kdesu
Class | PtyProcess
Inherits |

### enums

- checkPidStatus = {Error = -1, NotExited = -2, Killed = -3 }

### methods

- PtyProcess ()

  returns a PtyProcess instance
  In versions KDE 3.0.1 and above only

- WaitSlave ()

  returns (int)
  In versions KDE 3.0.1 and above only

- checkPid (pid)

  returns (bool)
  In versions KDE 3.2.0 and above only
  static
  Argument | Type | Default
  --- | --- | ---
  pid | pid_t |

- checkPidExited (pid)

  returns (int)
  In versions KDE 3.2.0 and above only
  static
  Argument | Type | Default
  --- | --- | ---
  pid | pid_t |

- enableLocalEcho (enable = 1)

  returns (int)
  In versions KDE 3.0.1 and above only
  Argument | Type | Default
  --- | --- | ---
  enable | bool | 1

- environment ()

  returns (QCStringList)
  In versions KDE 3.1.1 and above only

- exec_ (command, args)

  returns (int)
  Renamed: was ' exec' in C++
  In versions KDE 3.0.1 and above only
  Argument | Type | Default
  --- | --- | ---
  command | QCString |
  args | QCStringList |

- fd ()

  returns (int)
  In versions KDE 3.0.1 and above only

- pid ()

  returns (int)
  In versions KDE 3.0.1 and above only

- readLine (block = 1)

  returns (QCString)
  In versions KDE 3.0.1 and above only
  Argument | Type | Default
  --- | --- | ---
  block | bool | 1

- setEnvironment (env)

  returns nothing
  In versions KDE 3.0.1 and above only
  Argument | Type | Default
  --- | --- | ---
  env | QCStringList |

- setErase (erase)

  returns nothing
  In versions KDE 3.0.1 and above only
  Argument | Type | Default
  --- | --- | ---
  erase | bool |

- setExitString (exit)

  returns nothing
  In versions KDE 3.0.1 and above only
  Argument | Type | Default
  --- | --- | ---
  exit | QCString |

- setTerminal (terminal)

  returns nothing
  In versions KDE 3.0.1 and above only
  Argument | Type | Default
  --- | --- | ---
  terminal | bool |

- unreadLine (line, addNewline = 1)

  returns nothing
  In versions KDE 3.0.1 and above only
  Argument | Type | Default
  --- | --- | ---
  line | QCString |
  addNewline | bool | 1

- waitForChild ()

  returns (int)
  In versions KDE 3.0.1 and above only

- waitMS (fd, ms)

  returns (int)
  In versions KDE 3.2.0 and above only
  static
  Argument | Type | Default
  --- | --- | ---
  fd | int |
  ms | int |

- writeLine (line, addNewline = 1)

  returns nothing
  In versions KDE 3.0.1 and above only
  Argument | Type | Default
  --- | --- | ---
  line | QCString |
  addNewline | bool | 1