Package svnmailer :: Module util :: Class _Terminal
[show private | hide private]
[frames | no frames]

Class _Terminal

object --+
         |
        _Terminal


Deal with terminal properties
Method Summary
  __init__(self)
Initialization
int getWidth(self)
Returns terminal width if determined, None otherwise
bool isatty(self, fd)
Returns whether the given descriptor is connected to a terminal
    Inherited from object
  __delattr__(...)
x.__delattr__('name') <==> del x.name...
  __getattribute__(...)
x.__getattribute__('name') <==> x.name...
  __hash__(x)
x.__hash__() <==> hash(x)...
  __reduce__(...)
helper for pickle...
  __reduce_ex__(...)
helper for pickle...
  __repr__(x)
x.__repr__() <==> repr(x)...
  __setattr__(...)
x.__setattr__('name', value) <==> x.name = value...
  __str__(x)
x.__str__() <==> str(x)...
    Inherited from type
  __new__(T, S, ...)
T.__new__(S, ...) -> a new object with type S, a subtype of T...

Method Details

__init__(self)
(Constructor)

Initialization
Overrides:
__builtin__.object.__init__

getWidth(self)

Returns terminal width if determined, None otherwise
Returns:
The width
           (type=int)

isatty(self, fd)

Returns whether the given descriptor is connected to a terminal

If the os module doesn't provide an isatty function, we return False instead of raising an exception

Parameters:
fd - The file descriptor to inspect
           (type=int)
Returns:
Is fd connected to a terminal?
           (type=bool)

Generated by Epydoc 2.0 on Sun Sep 25 20:49:13 2005 http://epydoc.sf.net