Skip to content
Snippets Groups Projects
Commit f583900d authored by Bob Lantz's avatar Bob Lantz
Browse files

Added default title of 'Node'.

parent 68f97b74
No related branches found
No related tags found
No related merge requests found
......@@ -16,7 +16,7 @@ def quoteArg( arg ):
"Quote an argument if it contains spaces."
return repr( arg ) if ' ' in arg else arg
def makeTerm( node, title = 'Node', term = 'xterm' ):
def makeTerm( node, title='Node', term='xterm' ):
"""Run screen on a node, and hook up a terminal.
node: Node object
title: base title
......@@ -52,9 +52,10 @@ def cleanUpScreens():
if m:
quietRun( 'screen -S ' + m.group( 1 ) + ' -X quit' )
def makeTerms( nodes, title = '', term = 'xterm' ):
def makeTerms( nodes, title='Node', term='xterm' ):
"""Create terminals.
nodes: list of Node objects
title: base title for each
returns: list of created terminal processes"""
return [ makeTerm( node, title, term ) for node in nodes ]
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment