i'm a noob. Please fix my line to get yellow output in terminal. print('https://%s' % encoded_uri.decode('utf-8') + temp)  Thanks.
4202
How can I output colored text to the terminal in Python?
64487
OS X terminal is not using colors for highlighting output from different commands, for example ls.   When compared with other systems like Ubuntu, this is a big loss of accessibility/productivity.  What solutions do I have to improve this experience? For the moment I found only this guide for  but I am looking for a more complete solution.
41448
I see you have succussfully answered this question previously but it is not specific to my system.  I have downloaded your file and created the relevant dump file but I don't know how to analyse it. Can I upload it to you for some advice please?
92750
I have a Perl regular expression (shown , though understanding the whole thing isn't hopefully necessary to answering this question) that contains the \G metacharacter. I'd like to translate it into Python, but Python doesn't appear to support \G. What can I do?
122578
the following syntax print the output1 down   echo "$status"    output1:      component_name : TEZ_CLIENT     recovery_enabled : true     component_name : WEBHCAT_SERVER         recovery_enabled : true     component_name : YARN_CLIENT            recovery_enabled : true     component_name : ZKFC           recovery_enabled : true     component_name : ZOOKEEPER_CLIENT             recovery_enabled : true     component_name : ZOOKEEPER_SERVER                      recovery_enabled : true   how to add the printf syntax in order to get the following lines:  expected output      component_name : TEZ_CLIENT             recovery_enabled : true     component_name : WEBHCAT_SERVER         recovery_enabled : true     component_name : YARN_CLIENT            recovery_enabled : true     component_name : ZKFC                   recovery_enabled : true     component_name : ZOOKEEPER_CLIENT       recovery_enabled : true     component_name : ZOOKEEPER_SERVER       recovery_enabled : true
1353
Is output buffering enabled by default in Python's interpreter for sys.stdout?  If the answer is positive, what are all the ways to disable it?  Suggestions so far:   Use the -u command line switch Wrap sys.stdout in an object that flushes after every write Set PYTHONUNBUFFERED env var sys.stdout = os.fdopen(sys.stdout.fileno(), 'w', 0)   Is there any other way to set some global flag in sys/sys.stdout programmatically during execution?
123086
Just out of curiousity.. Why are the line endings different for Windows and Unix.  I was looking around for the answer but not found.
120965
I am looking for a IRC client for the terminal that has colors, user list and just generally looks awesome ;) Any recommendations? There are loads of IRC clients in the repositories and I don't want to download them all to find the best one.
118363
The terminal is not combing Unicode characters correctly. How do I solve this?
96815
By default, man uses less to output text. How can I tell it to just output to stdout? My terminal emulator has a scroll bar and search function and I want to use those instead of the arrow keys.
61157
What are the possible return values from the following command?  import sys print sys.platform   I know there is a lot of possibilities, so I'm mainly interested in the "main" ones (Windows, Linux, Mac OS)
29125
When I execute man ls &gt; temp.txt the output text file is corrupted. By corrupted I mean that first and last letters in some words are overly repeated.  Several first lines in temp.txt:  LS(1)                     BSD General Commands Manual                    LS(1)  NNAAMMEE      llss -- list directory contents  SSYYNNOOPPSSIISS      llss [--AABBCCFFGGHHLLOOPPRRSSTTUUWW@@aabbccddeeffgghhiikkllmmnnooppqqrrssttuuwwxx11] [_f_i_l_e _._._.]  DDEESSCCRRIIPPTTIIOONN   And so on. Without redirection man ls is perfectly normal. What's happening?
104938
Trying to use grep today, I ran into the  of the  in a Unicode file (UTF-8, in this case). Specifically, I was trying to find a file beginning with XYZ with the pattern grep '^XYZ', but of course grep treated the BOM as three separate characters and did not match the first line of the file if the first line started with XYZ. I even tried to update the regular expression to ignore spaces ('^[[:space:]]*XYZ'), but to no avail.  Other questions have dealt with  or , but I want to know if POSIX tools have a general option to handle Unicode files correctly. If grep handled the Unicode file correctly, it would consider the file contents to start after the BOM and match XYZ on the first line just like any other line.
45626
Nothing looks right in the ASCII art.  It looks wrong and nothing is proportional, how do I fix this? I have tried fiddling with my font size, but nothing still looks right!
21860
I'm trying to debug a Python script by placing a print("foo=" + foo) statement in my code.  But where does the output appear?     It doesn't appear on the Python Console, and it doesn't appear on the area that appears when you drag the lower edge of the infobar downwards (what is the name for this area? My script errors show up in red here.)
28430
I have problem (seems to be trivia) about Ubuntu Terminal. Once my network connection slow down then it (sometimes but very rare to happened) showed some information like this.     I shocked because I have been got 2,919 PB/s. Sorry my mouse block some part of letter 'P' (I actually rush to print screen) but I believe you can recognize it.    EDIT    based on answer given to me, and I got similar info then, I'd like to add more clearly new image after.    Can someone explain it to me?  Best Regards!
43791
I wasn't following Meta Stack Overflow too closely so maybe something was changed that I'm not aware of. But each time I paste a snippet from a Python console I'm getting wrong formatting. What I'm doing wrong? It seems that &gt;&gt;&gt; is confusing for Stack Overflow. I've tried to escape it with backslashes, and it was working fine in preview but doesn't work after the question is rendered.  I was able to observe that problem on: recent Chrome (Windows, Mac), Safari 4 (Mac).  Here is  I wasn't able to make right.  Funny, I think the snippets are rendered just fine on Meta Stack Overflow. Here is one:  &gt;&gt;&gt; def throw(): raise Exception()  ...  &gt;&gt;&gt; a=1 &gt;&gt;&gt; a=throw() Traceback (most recent call last):   File "&lt;stdin&gt;", line 1, in &lt;module&gt;   File "&lt;stdin&gt;", line 1, in throw Exception &gt;&gt;&gt; a 1