|
ready dev write msecs returns True if the device has data
to read (if write is False) or space to write new data (if
write is True). msecs specifies how long to wait, in
milliseconds.
|
|
|
closes the device. Further operations on the device should
produce exceptions.
|
|
|
returns True if the device is a terminal or console.
|
|
|
returns True if the device supports seek operations.
|
|
|
seek to the specified position in the data.
|
|
|
return the current position in the data.
|
|
|
return the size of the data.
|
|
|
change the size of the data.
|
|
|
for terminal devices, changes whether characters are echoed on
the device.
|
|
|
returns the current echoing status.
|
|
|
some devices (e.g. terminals) support a raw mode where
characters entered are immediately made available to the program.
If available, this operations enables raw mode.
|
|
|
returns the IODeviceType corresponding to this device.
|
|
|
duplicates the device, if possible. The new device is expected
to share a file pointer with the original device (like Unix dup).
|
|
|
dup2 source target replaces the target device with the source
device. The target device is closed first, if necessary, and then
it is made into a duplicate of the first device (like Unix dup2).
|