From 0f6bf4ce840eccbf47d1261593b1dc1fadea7e7e Mon Sep 17 00:00:00 2001 From: Bob Lantz <rlantz@cs.stanford.edu> Date: Tue, 9 Apr 2013 20:10:55 -0700 Subject: [PATCH] start xterm with TERM=ansi to preserve title from bash.bashrc fixes #128 --- mininet/term.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mininet/term.py b/mininet/term.py index 6d8704f1..c99a8248 100644 --- a/mininet/term.py +++ b/mininet/term.py @@ -49,7 +49,7 @@ def makeTerm( node, title='Node', term='xterm', display=None ): error( 'invalid terminal type: %s' % term ) return display, tunnel = tunnelX11( node, display ) - term = node.popen( cmds[ term ] + [ display ] ) + term = node.popen( cmds[ term ] + [ display, '-e', 'env TERM=ansi bash'] ) return [ tunnel, term ] if tunnel else [ term ] def cleanUpScreens(): -- GitLab