[Cvsshell-devel] CVS: cvsshell/src interactive_app.py,1.9,1.10
Status: Beta
Brought to you by:
stefanheimann
From: Stefan H. <ste...@us...> - 2002-07-27 13:32:36
|
Update of /cvsroot/cvsshell/cvsshell/src In directory usw-pr-cvs1:/tmp/cvs-serv21925/src Modified Files: interactive_app.py Log Message: Index: interactive_app.py =================================================================== RCS file: /cvsroot/cvsshell/cvsshell/src/interactive_app.py,v retrieving revision 1.9 retrieving revision 1.10 diff -C2 -d -r1.9 -r1.10 *** interactive_app.py 26 Jul 2002 15:44:25 -0000 1.9 --- interactive_app.py 27 Jul 2002 13:32:32 -0000 1.10 *************** *** 23,26 **** --- 23,30 ---- from app import App, AppError + def complete(text, state): + print 'text: ', text + if state == 0: return 'd/' + class InteractiveApp(App): *************** *** 34,40 **** self.printErr("Could not import readline.\nHistory browsing " \ "and tab completion will not be available.") - return else: readline.parse_and_bind("tab: complete") def setHistoryFile(self,filename): --- 38,44 ---- self.printErr("Could not import readline.\nHistory browsing " \ "and tab completion will not be available.") else: readline.parse_and_bind("tab: complete") + readline.set_completer(complete) def setHistoryFile(self,filename): |