# this file: # https://dataswamp.org/~incal/cols/set_cols.sed # # tutorial: # https://dataswamp.org/~incal/cols/www/COLORS # # This will transform a pretty table of color information # into the computer format. # remove labels and whitespace 3,5 s/^r // 3,5 s/^g // 3,5 s/^b // 3,5 s/ / /g 3,5 s/ / /g 3,5 s/ /,/g 3 w /sys/module/vt/parameters/default_red 4 w /sys/module/vt/parameters/default_grn 5 w /sys/module/vt/parameters/default_blu # This is an example of a pretty file: # # normal bright # bk r g y bl m c w bk r g y bl m c w # r 0 180 0 170 85 170 0 170 85 255 0 255 100 255 0 255 # g 0 0 170 170 85 0 170 170 85 0 255 255 100 0 255 255 # b 0 0 0 0 170 170 170 170 85 0 0 0 255 255 255 255 # # After running this script, the red file # # /sys/module/vt/parameters/default_red # # will look now look like this: # # 0,180,0,170,85,170,0,170,85,255,0,255,100,255,0,255