mailr24257 - /trunk/relax.py


Others Months | Index by Date | Thread Index
>>   [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Header


Content

Posted by edward on June 23, 2014 - 20:12:
Author: bugman
Date: Mon Jun 23 20:12:02 2014
New Revision: 24257

URL: http://svn.gna.org/viewcvs/relax?rev=24257&view=rev
Log:
Hack to permanently eliminate the ^[[?1034h escape code being produced on 
Linux systems.

This is produced by importing the readline module.  The escape code will be 
sent to STDOUT every
time relax is executed, so it will be present in all log files.  The problem 
is the TERM
environmental variable being set to 'xterm'.  The hack simply sets TERM to an 
empty string.


Modified:
    trunk/relax.py

Modified: trunk/relax.py
URL: 
http://svn.gna.org/viewcvs/relax/trunk/relax.py?rev=24257&r1=24256&r2=24257&view=diff
==============================================================================
--- trunk/relax.py      (original)
+++ trunk/relax.py      Mon Jun 23 20:12:02 2014
@@ -35,6 +35,10 @@
 
 # Dependency checks.
 import dep_check
+
+# Eliminate the ^[[?1034h escape code being produced on Linux systems by the 
import of the readline module.
+import os
+os.environ['TERM'] = ''
 
 # Set up the Python 2 and 3 work-arounds.
 import lib.compat




Related Messages


Powered by MHonArc, Updated Tue Jun 24 09:40:03 2014