def printBackgroundColor():
for colorStrip in range(8):
for middleRange in range(30,38):
s1 = ''
for backGround in range(40,48):
format = ';'.join([str(colorStrip), str(middleRange), str(backGround)])
s1 += '\x1b[%sm %s \x1b[0m' % (format, format)
print(s1)
print('\n')
printBackgroundColor()
Output:
Comments
Leave a comment