Home | Trees | Index | Help |
|
---|
Package twisted :: Package conch :: Package insults :: Module client :: Class InsultsClient |
|
BaseProtocol
--+ |Protocol
--+ | InsultsClient
Method Summary | |
---|---|
__init__(self)
| |
Clear the screen, and return the cursor to 0, 0. | |
Called whenever data is received. | |
endEscape(self)
| |
Erase from the current position to the end of the line. | |
Erase from the current position to the end of the screen. | |
Go to a position on the screen. | |
initScreen(self)
| |
Called when the user hits a key. | |
Redraw the screen. | |
Set the attributes for drawing on the screen. | |
setSize(self,
width,
height)
| |
Called when the size of the window changes. | |
Write a character to the screen. | |
Write a string to the screen. | |
Inherited from Protocol | |
(Deprecated) | |
Called when the connection is shut down. | |
Inherited from BaseProtocol | |
Called when a connection is made. | |
Make a connection to a transport and a server. |
Class Variable Summary | |
---|---|
float |
escapeTimeout = 0.20000000000000001 |
Inherited from Protocol | |
tuple |
__implements__ = (<class twisted.internet.interfaces.IPr...
|
Inherited from BaseProtocol | |
int |
connected = 0 |
NoneType |
transport = None |
Method Details |
---|
clearScreen(self)Clear the screen, and return the cursor to 0, 0. |
dataReceived(self, data)Called whenever data is received. Use this method to translate to a higher-level message. Usually, some callback will be made upon the receipt of each complete protocol message.
|
eraseToLine(self)Erase from the current position to the end of the line. |
eraseToScreen(self)Erase from the current position to the end of the screen. |
gotoXY(self, x, y)Go to a position on the screen. |
keyReceived(self, key)Called when the user hits a key. |
refresh(self)Redraw the screen. |
setAttributes(self, *attrs)Set the attributes for drawing on the screen. |
windowSizeChanged(self)Called when the size of the window changes. Might want to redraw the screen here, or something. |
writeCh(self, ch)Write a character to the screen. If we're at the end of the row, ignore the write. |
writeStr(self, s)Write a string to the screen. This does not wrap a the edge of the screen, and stops at \r and \n. |
Class Variable Details |
---|
escapeTimeout
|
Home | Trees | Index | Help |
|
---|
Generated by Epydoc 2.0 on Sat May 15 20:07:44 2004 | http://epydoc.sf.net |