#!/usr/bin/gawk -f # # idea from: http://www.pixelbeat.org/docs/terminal_colours/ # # ansicolours: script to display ansi colours and escape sequences # # Copyright (C) 2008 Grant Coady -- http://bugsplatter.id.au/ GPLv2 # BEGIN { s = "\033[" e = "\033[0m" print "\n sf4sf extended color_* values:" for (f = 30; f <= 37; f++) { normal = bright = " " for (b = 40; b <= 47; b++) { normal = normal s f ";" b "m " f ";" b " " e bright = bright s "1;" f ";" b "m 1;" f ";" b " " e } print normal "\n" bright } printf " " for (f = 30; f <= 37; f++) # show reverse colours printf s "7;" f "m 7;" f " " e print "" exit } # end