<div dir="ltr">Googlando ho trovato questo:<div><br></div><div><span style="color:rgb(85,85,85);font-family:Monaco,'Andale Mono','Courier New',Courier,mono;font-size:12px;line-height:15.0052490234375px;background-color:rgb(244,244,244)">#Definizione colori background</span><br style="margin:0px;padding:0px;color:rgb(85,85,85);font-family:Monaco,'Andale Mono','Courier New',Courier,mono;font-size:12px;line-height:15.0052490234375px;background-color:rgb(244,244,244)"><span style="color:rgb(85,85,85);font-family:Monaco,'Andale Mono','Courier New',Courier,mono;font-size:12px;line-height:15.0052490234375px;background-color:rgb(244,244,244)">BBLACK = "\033[40m"  #NERO</span><br style="margin:0px;padding:0px;color:rgb(85,85,85);font-family:Monaco,'Andale Mono','Courier New',Courier,mono;font-size:12px;line-height:15.0052490234375px;background-color:rgb(244,244,244)"><span style="color:rgb(85,85,85);font-family:Monaco,'Andale Mono','Courier New',Courier,mono;font-size:12px;line-height:15.0052490234375px;background-color:rgb(244,244,244)">BRED = "\033[41m"    #ROSSO</span><br style="margin:0px;padding:0px;color:rgb(85,85,85);font-family:Monaco,'Andale Mono','Courier New',Courier,mono;font-size:12px;line-height:15.0052490234375px;background-color:rgb(244,244,244)"><span style="color:rgb(85,85,85);font-family:Monaco,'Andale Mono','Courier New',Courier,mono;font-size:12px;line-height:15.0052490234375px;background-color:rgb(244,244,244)">BGREEN = "\033[42m"  #VERDE</span><br style="margin:0px;padding:0px;color:rgb(85,85,85);font-family:Monaco,'Andale Mono','Courier New',Courier,mono;font-size:12px;line-height:15.0052490234375px;background-color:rgb(244,244,244)"><span style="color:rgb(85,85,85);font-family:Monaco,'Andale Mono','Courier New',Courier,mono;font-size:12px;line-height:15.0052490234375px;background-color:rgb(244,244,244)">BYELLOW = "\033[43m" #GIALLO</span><br style="margin:0px;padding:0px;color:rgb(85,85,85);font-family:Monaco,'Andale Mono','Courier New',Courier,mono;font-size:12px;line-height:15.0052490234375px;background-color:rgb(244,244,244)"><span style="color:rgb(85,85,85);font-family:Monaco,'Andale Mono','Courier New',Courier,mono;font-size:12px;line-height:15.0052490234375px;background-color:rgb(244,244,244)">BBLUE = "\033[44m"   #BLU</span><br style="margin:0px;padding:0px;color:rgb(85,85,85);font-family:Monaco,'Andale Mono','Courier New',Courier,mono;font-size:12px;line-height:15.0052490234375px;background-color:rgb(244,244,244)"><span style="color:rgb(85,85,85);font-family:Monaco,'Andale Mono','Courier New',Courier,mono;font-size:12px;line-height:15.0052490234375px;background-color:rgb(244,244,244)">BMAGENTA = "\033[45m"#MAGENTA</span><br style="margin:0px;padding:0px;color:rgb(85,85,85);font-family:Monaco,'Andale Mono','Courier New',Courier,mono;font-size:12px;line-height:15.0052490234375px;background-color:rgb(244,244,244)"><span style="color:rgb(85,85,85);font-family:Monaco,'Andale Mono','Courier New',Courier,mono;font-size:12px;line-height:15.0052490234375px;background-color:rgb(244,244,244)">BACQUA = "\033[46m"  #ACQUA</span><br style="margin:0px;padding:0px;color:rgb(85,85,85);font-family:Monaco,'Andale Mono','Courier New',Courier,mono;font-size:12px;line-height:15.0052490234375px;background-color:rgb(244,244,244)"><span style="color:rgb(85,85,85);font-family:Monaco,'Andale Mono','Courier New',Courier,mono;font-size:12px;line-height:15.0052490234375px;background-color:rgb(244,244,244)">BWHITE "\033[47m"    #BIANCO</span><br style="margin:0px;padding:0px;color:rgb(85,85,85);font-family:Monaco,'Andale Mono','Courier New',Courier,mono;font-size:12px;line-height:15.0052490234375px;background-color:rgb(244,244,244)"><br style="margin:0px;padding:0px;color:rgb(85,85,85);font-family:Monaco,'Andale Mono','Courier New',Courier,mono;font-size:12px;line-height:15.0052490234375px;background-color:rgb(244,244,244)"><span style="color:rgb(85,85,85);font-family:Monaco,'Andale Mono','Courier New',Courier,mono;font-size:12px;line-height:15.0052490234375px;background-color:rgb(244,244,244)">#Definizione colori foreground</span><br style="margin:0px;padding:0px;color:rgb(85,85,85);font-family:Monaco,'Andale Mono','Courier New',Courier,mono;font-size:12px;line-height:15.0052490234375px;background-color:rgb(244,244,244)"><span style="color:rgb(85,85,85);font-family:Monaco,'Andale Mono','Courier New',Courier,mono;font-size:12px;line-height:15.0052490234375px;background-color:rgb(244,244,244)">BLACK = "\033[30m"   #NERO</span><br style="margin:0px;padding:0px;color:rgb(85,85,85);font-family:Monaco,'Andale Mono','Courier New',Courier,mono;font-size:12px;line-height:15.0052490234375px;background-color:rgb(244,244,244)"><span style="color:rgb(85,85,85);font-family:Monaco,'Andale Mono','Courier New',Courier,mono;font-size:12px;line-height:15.0052490234375px;background-color:rgb(244,244,244)">RED = "\033[31m"     #ROSSO</span><br style="margin:0px;padding:0px;color:rgb(85,85,85);font-family:Monaco,'Andale Mono','Courier New',Courier,mono;font-size:12px;line-height:15.0052490234375px;background-color:rgb(244,244,244)"><span style="color:rgb(85,85,85);font-family:Monaco,'Andale Mono','Courier New',Courier,mono;font-size:12px;line-height:15.0052490234375px;background-color:rgb(244,244,244)">GREEN = "\033[32m"   #VERDE</span><br style="margin:0px;padding:0px;color:rgb(85,85,85);font-family:Monaco,'Andale Mono','Courier New',Courier,mono;font-size:12px;line-height:15.0052490234375px;background-color:rgb(244,244,244)"><span style="color:rgb(85,85,85);font-family:Monaco,'Andale Mono','Courier New',Courier,mono;font-size:12px;line-height:15.0052490234375px;background-color:rgb(244,244,244)">YELLOW = "\033[33m"  #GIALLO</span><br style="margin:0px;padding:0px;color:rgb(85,85,85);font-family:Monaco,'Andale Mono','Courier New',Courier,mono;font-size:12px;line-height:15.0052490234375px;background-color:rgb(244,244,244)"><span style="color:rgb(85,85,85);font-family:Monaco,'Andale Mono','Courier New',Courier,mono;font-size:12px;line-height:15.0052490234375px;background-color:rgb(244,244,244)">BLUE = "\033[34m"    #BLU</span><br style="margin:0px;padding:0px;color:rgb(85,85,85);font-family:Monaco,'Andale Mono','Courier New',Courier,mono;font-size:12px;line-height:15.0052490234375px;background-color:rgb(244,244,244)"><span style="color:rgb(85,85,85);font-family:Monaco,'Andale Mono','Courier New',Courier,mono;font-size:12px;line-height:15.0052490234375px;background-color:rgb(244,244,244)">MAGENTA = "\033[35m" #MAGENTA</span><br style="margin:0px;padding:0px;color:rgb(85,85,85);font-family:Monaco,'Andale Mono','Courier New',Courier,mono;font-size:12px;line-height:15.0052490234375px;background-color:rgb(244,244,244)"><span style="color:rgb(85,85,85);font-family:Monaco,'Andale Mono','Courier New',Courier,mono;font-size:12px;line-height:15.0052490234375px;background-color:rgb(244,244,244)">ACQUA = "\033[36m"   #ACQUA</span><br style="margin:0px;padding:0px;color:rgb(85,85,85);font-family:Monaco,'Andale Mono','Courier New',Courier,mono;font-size:12px;line-height:15.0052490234375px;background-color:rgb(244,244,244)"><span style="color:rgb(85,85,85);font-family:Monaco,'Andale Mono','Courier New',Courier,mono;font-size:12px;line-height:15.0052490234375px;background-color:rgb(244,244,244)">WHITE = "\033[37m"   #BIANCO</span><br style="margin:0px;padding:0px;color:rgb(85,85,85);font-family:Monaco,'Andale Mono','Courier New',Courier,mono;font-size:12px;line-height:15.0052490234375px;background-color:rgb(244,244,244)"><br style="margin:0px;padding:0px;color:rgb(85,85,85);font-family:Monaco,'Andale Mono','Courier New',Courier,mono;font-size:12px;line-height:15.0052490234375px;background-color:rgb(244,244,244)"><span style="color:rgb(85,85,85);font-family:Monaco,'Andale Mono','Courier New',Courier,mono;font-size:12px;line-height:15.0052490234375px;background-color:rgb(244,244,244)">COL_DEFAULT = "\033[0m"</span><br style="margin:0px;padding:0px;color:rgb(85,85,85);font-family:Monaco,'Andale Mono','Courier New',Courier,mono;font-size:12px;line-height:15.0052490234375px;background-color:rgb(244,244,244)"><span style="color:rgb(85,85,85);font-family:Monaco,'Andale Mono','Courier New',Courier,mono;font-size:12px;line-height:15.0052490234375px;background-color:rgb(244,244,244)">BOLD_T = "\E[0;1m"</span><br></div><div><span style="color:rgb(85,85,85);font-family:Monaco,'Andale Mono','Courier New',Courier,mono;font-size:12px;line-height:15.0052490234375px;background-color:rgb(244,244,244)"><br></span></div><div><span style="color:rgb(16,16,16);font-family:Ubuntu,'Lucida Grande','Trebuchet MS',Verdana,Helvetica,Arial,sans-serif;font-size:13px;line-height:18.8999996185303px;background-color:rgb(201,201,201)">print "%s stringa %s", %(RED,COL_DEFAULT)</span><span style="color:rgb(85,85,85);font-family:Monaco,'Andale Mono','Courier New',Courier,mono;font-size:12px;line-height:15.0052490234375px;background-color:rgb(244,244,244)"><br></span></div><div><span style="color:rgb(16,16,16);font-family:Ubuntu,'Lucida Grande','Trebuchet MS',Verdana,Helvetica,Arial,sans-serif;font-size:13px;line-height:18.8999996185303px;background-color:rgb(201,201,201)"><br></span></div><div><br></div><div>non l'ho testato, prova ;-))</div></div>