Update of /cvsroot/cvsshell/cvsshell/src
In directory usw-pr-cvs1:/tmp/cvs-serv29355/src
Modified Files:
app.py basic_cmds.py cvs_cmds.py cvs_shell.py plugable_app.py
Log Message:
* improved color support (it's configurable to switch on/off)
* made full command working
Index: app.py
===================================================================
RCS file: /cvsroot/cvsshell/cvsshell/src/app.py,v
retrieving revision 1.9
retrieving revision 1.10
diff -C2 -d -r1.9 -r1.10
*** app.py 15 Mar 2002 00:31:04 -0000 1.9
--- app.py 15 Mar 2002 00:47:08 -0000 1.10
***************
*** 47,51 ****
self.copyright = None
self.bugAddress = None
! self.enableColor = 1
try:
self.path = os.environ['PATH'].split(os.pathsep)
--- 47,51 ----
self.copyright = None
self.bugAddress = None
! self.enableColor = 0
try:
self.path = os.environ['PATH'].split(os.pathsep)
Index: basic_cmds.py
===================================================================
RCS file: /cvsroot/cvsshell/cvsshell/src/basic_cmds.py,v
retrieving revision 1.15
retrieving revision 1.16
diff -C2 -d -r1.15 -r1.16
*** basic_cmds.py 15 Mar 2002 00:31:36 -0000 1.15
--- basic_cmds.py 15 Mar 2002 00:47:08 -0000 1.16
***************
*** 79,82 ****
--- 79,85 ----
if root: app.setCvsRoot(root)
+ def toggleFullStatusLine(app, name, args):
+ """Toggle between full and abbreviated status line."""
+ app.showFullPrompt = app.toggle(app.showFullPrompt, args)
Index: cvs_cmds.py
===================================================================
RCS file: /cvsroot/cvsshell/cvsshell/src/cvs_cmds.py,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -d -r1.4 -r1.5
*** cvs_cmds.py 15 Mar 2002 00:31:36 -0000 1.4
--- cvs_cmds.py 15 Mar 2002 00:47:08 -0000 1.5
***************
*** 397,403 ****
newRoot = app.readCvsRootFromFile()
if newRoot is not None: app.setCvsRoot(newRoot)
-
-
- def toggleFullPrompt(app, name, args):
- """Toggle between full and abbreviated status line."""
- app.showFullPrompt = app.toggle(app.showFullPrompt, args)
--- 397,398 ----
Index: cvs_shell.py
===================================================================
RCS file: /cvsroot/cvsshell/cvsshell/src/cvs_shell.py,v
retrieving revision 1.17
retrieving revision 1.18
diff -C2 -d -r1.17 -r1.18
*** cvs_shell.py 15 Mar 2002 00:31:04 -0000 1.17
--- cvs_shell.py 15 Mar 2002 00:47:08 -0000 1.18
***************
*** 81,84 ****
--- 81,85 ----
self.readConfigFile()
self.listingFilter = utils.splitquoted(self.configMap.get('filter',''))
+ self.enableColor = self.configMap.get('colors', 'off') == 'on'
Index: plugable_app.py
===================================================================
RCS file: /cvsroot/cvsshell/cvsshell/src/plugable_app.py,v
retrieving revision 1.5
retrieving revision 1.6
diff -C2 -d -r1.5 -r1.6
*** plugable_app.py 10 Mar 2002 23:13:59 -0000 1.5
--- plugable_app.py 15 Mar 2002 00:47:08 -0000 1.6
***************
*** 115,119 ****
for x in l:
self.cmdToCmds[x] = cmds
!
--- 115,119 ----
for x in l:
self.cmdToCmds[x] = cmds
! self.printVMsg("registered command %s" % cmdName)
|