This is the Nomacs editor. It's like Emacs without the
macros.
Methods
|
|
|
|
__init__
|
__init__ ( self )
|
|
arrowDown
|
arrowDown ( self )
|
|
arrowLeft
|
arrowLeft ( self )
|
|
arrowOops
|
arrowOops ( self )
|
|
arrowRight
|
arrowRight ( self )
|
|
arrowUp
|
arrowUp ( self )
|
|
ask
|
ask (
self,
meth,
question,
)
|
|
backspace
|
backspace ( self )
|
|
centerDoc
|
centerDoc ( self )
|
|
changed
|
changed ( self )
|
|
closeBrace
|
closeBrace ( self, brace )
|
|
command
|
command ( self, what )
|
|
copy
|
copy ( self )
|
|
deleteChar
|
deleteChar ( self )
|
|
doDeleteChars
|
doDeleteChars (
self,
y,
x1,
x2,
combine=0,
)
Delete characters on a particular line. No newlines allowed.
Deletes from x1 up to but not including x2. If x2 is -1,
delete through end of line. |
|
doDeleteLine
|
doDeleteLine (
self,
y,
combine=0,
)
Delete a line of text. |
|
doInsertChars
|
doInsertChars (
self,
y,
x,
text,
combine=0,
)
Insert characters on a particular line. No newlines allowed. |
|
doInsertLine
|
doInsertLine (
self,
y,
text,
combine=0,
)
Insert a new line of text. |
|
drawAll
|
drawAll ( self )
|
|
drawBody
|
drawBody ( self )
|
|
drawFooter
|
drawFooter ( self )
|
|
drawHeader
|
drawHeader ( self )
|
|
drawLine
|
drawLine (
self,
y,
x=0,
)
|
|
drawStatus
|
drawStatus ( self )
|
|
flush
|
flush ( self, s='' )
Sends everything in the output buffer over the socket and
then clears the output buffer. |
|
getBuffer
|
getBuffer ( self )
Returns self.text_buffer which is a list of strings. Call
this when you're saving the buffer because this is the stuff
you want to save. |
|
getClientEOL
|
getClientEOL ( self )
Retrieves the EOL sequence of the client. |
|
getClientHeight
|
getClientHeight ( self )
Retrieves the height of the client (default is 22). |
|
getClientWidth
|
getClientWidth ( self )
Retrieves the width of the client (default is 72). |
|
getFilename
|
getFilename ( self )
Returns self.filename. |
|
getLineWidth
|
getLineWidth ( self, lineno )
|
|
getNextIndent
|
getNextIndent ( self, y )
|
|
getNonspaceIndex
|
getNonspaceIndex ( self, y )
|
|
gotoDocBegin
|
gotoDocBegin ( self )
|
|
gotoDocEnd
|
gotoDocEnd ( self )
|
|
help
|
help ( self )
|
|
helpResponse
|
helpResponse ( self, ans )
|
|
initScreen
|
initScreen ( self )
|
|
initialize
|
initialize (
self,
filename="",
text="",
)
Initializes the processors, sets us into CxC mode,
and loads the file (if any). then it draws the screen.
Exceptions
|
|
Exception, "Can't switch into charactermode."
|
|
|
insertChar
|
insertChar ( self, c )
|
|
insertNewline
|
insertNewline ( self )
|
|
killLine
|
killLine ( self )
|
|
message
|
message ( self, s )
|
|
moveCursor
|
moveCursor (
self,
row=-1,
col=-1,
)
|
|
moveCursorRelativeToDoc
|
moveCursorRelativeToDoc (
self,
y,
x,
)
|
|
pageDown
|
pageDown ( self )
|
|
pageUp
|
pageUp ( self )
|
|
prompt
|
prompt ( self )
|
|
quit
|
quit ( self )
|
|
quitResponse
|
quitResponse ( self, ans )
|
|
refresh
|
refresh ( self )
|
|
rowIsOnscreen
|
rowIsOnscreen ( self, y )
Minus 3 for header, status bar, and footer |
|
saveDoc
|
saveDoc ( self )
|
|
silentlyMoveCursor
|
silentlyMoveCursor (
self,
row,
col,
)
|
|
silentlyMoveCursorRelativeToDoc
|
silentlyMoveCursorRelativeToDoc (
self,
y,
x,
)
|
|
tab
|
tab ( self, combine=0 )
|
|
undo
|
undo ( self )
|
|
unimplemented
|
unimplemented ( self )
|
|
write
|
write ( self, output )
Adds a string to the output buffer. Call flush to send the
output to the player. |
|