Skip to content

Commit

Permalink
texteditor
Browse files Browse the repository at this point in the history
  • Loading branch information
Ryan committed Feb 21, 2010
1 parent f2287fc commit 3845377
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 7 deletions.
10 changes: 10 additions & 0 deletions src/mud/menu/textEditor.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,3 +65,13 @@ def _displayText( clientId, textEditor ):
sendToClient( clientId, textEditor.text + endl + textEditor.menu )


class _Buffer:

def __init__( self, initialText):

self.lines = []

if initialText: _stringToLines( initialText )

def _stringToLines( self, initialText):
pass
12 changes: 5 additions & 7 deletions src/org/text-editor.org
Original file line number Diff line number Diff line change
Expand Up @@ -41,22 +41,20 @@
** paste block of text from internet and edit from there
** urls, bullet points, special characters


* tests
** appendLine("not-epsilon") && wipe == epsilon
** appendLine("abc") && lines( numLines ) == "abc"

* scratch

_Buffer

init( string )

text()

string line( int )

void replaceLine( int, string )

void deleteLine( int )

void wipe()

void appendLine( string )

<display, append, edit line, ?, abort, finish>
Expand Down

0 comments on commit 3845377

Please sign in to comment.