[Cvsshell-devel] CVS: cvsshell/src interactive_app.py,1.10,1.11
Status: Beta
Brought to you by:
stefanheimann
From: Stefan H. <ste...@us...> - 2002-07-27 14:42:16
|
Update of /cvsroot/cvsshell/cvsshell/src In directory usw-pr-cvs1:/tmp/cvs-serv1211/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.10 retrieving revision 1.11 diff -C2 -d -r1.10 -r1.11 *** interactive_app.py 27 Jul 2002 13:32:32 -0000 1.10 --- interactive_app.py 27 Jul 2002 14:42:13 -0000 1.11 *************** *** 23,30 **** from app import App, AppError - def complete(text, state): - print 'text: ', text - if state == 0: return 'd/' - class InteractiveApp(App): --- 23,26 ---- *************** *** 40,44 **** else: readline.parse_and_bind("tab: complete") ! readline.set_completer(complete) def setHistoryFile(self,filename): --- 36,41 ---- else: readline.parse_and_bind("tab: complete") ! readline.set_completer_delims(' \t\n`~!@#$%^&*()-=+[{]}\\|;:\'",<>?') ! # readline.set_completer(complete) def setHistoryFile(self,filename): *************** *** 107,108 **** --- 104,110 ---- raise AppError, 'evalCommand must be redefined!' + def complete(self, text, state): + if state == 0: + dir = dirname(text) + print 'text: ', text + if state == 0: return 'd/' |