mevets
May 31st, 2008, 04:28 PM
I'm having my python script run
compiz-check > output.txt
This way it writes all its output to a file instead of the screen. My problem is that compiz-check use colors and bold font in its output. This is expressed weird characters when its written to a file. For example,
Gathering information about your system...
Distribution: [1mUbuntu 8.04[0m
Desktop environment: [1mGNOME[0m
Graphics chip: [1mIntel Corporation Mobile 945GM/GMS, 943/940GML Express Integrated Graphics Controller (rev 03)[0m
Driver in use: [1mintel[0m
Rendering method: [1mAIGLX[0m
Checking if it's possible to run Compiz on your system...
Checking for texture_from_pixmap... [ [1;32mOK[0m ]
Checking for non power of two support... [ [1;32mOK[0m ]
Checking for composite extension... [ [1;32mOK[0m ]
Checking for FBConfig... [ [1;32mOK[0m ]
Checking for hardware/setup problems... [ [1;32mOK[0m ]
Is there a way to easily remove these characters?
compiz-check > output.txt
This way it writes all its output to a file instead of the screen. My problem is that compiz-check use colors and bold font in its output. This is expressed weird characters when its written to a file. For example,
Gathering information about your system...
Distribution: [1mUbuntu 8.04[0m
Desktop environment: [1mGNOME[0m
Graphics chip: [1mIntel Corporation Mobile 945GM/GMS, 943/940GML Express Integrated Graphics Controller (rev 03)[0m
Driver in use: [1mintel[0m
Rendering method: [1mAIGLX[0m
Checking if it's possible to run Compiz on your system...
Checking for texture_from_pixmap... [ [1;32mOK[0m ]
Checking for non power of two support... [ [1;32mOK[0m ]
Checking for composite extension... [ [1;32mOK[0m ]
Checking for FBConfig... [ [1;32mOK[0m ]
Checking for hardware/setup problems... [ [1;32mOK[0m ]
Is there a way to easily remove these characters?