mailr24263 - /trunk/dep_check.py


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

Header


Content

Posted by edward on June 24, 2014 - 09:46:
Author: bugman
Date: Tue Jun 24 09:46:24 2014
New Revision: 24263

URL: http://svn.gna.org/viewcvs/relax?rev=24263&view=rev
Log:
More hacks for permanently eliminating the ^[[?1034h escape code being 
produced on Linux systems.

This is a nasty feature of the GNU readline library.  It is now also turned 
off in the dep_check
module, suppressing ^[[?1034h in Python scripts which import only parts of 
relax.


Modified:
    trunk/dep_check.py

Modified: trunk/dep_check.py
URL: 
http://svn.gna.org/viewcvs/relax/trunk/dep_check.py?rev=24263&r1=24262&r2=24263&view=diff
==============================================================================
--- trunk/dep_check.py  (original)
+++ trunk/dep_check.py  Tue Jun 24 09:46:24 2014
@@ -81,8 +81,11 @@
 except ImportError:
     epydoc_module = False
 
-# Readline module.
-try:
+# Readline module (avoiding the damned ^[[?1034h escape code on Linux 
systems).
+try:
+    import os
+    if os.environ['TERM'] == 'xterm':
+        os.environ['TERM'] = ''
     import readline
     readline_module = True
 except ImportError:




Related Messages


Powered by MHonArc, Updated Tue Jun 24 10:00:03 2014