Mercurial > repo
view orenbow.c @ 8710:b2a12533a7d9
<oerjan> mkx bin/rainbow//print_args_or_input "$@" | orenbow
author | HackBot |
---|---|
date | Tue, 05 Jul 2016 03:38:19 +0000 |
parents | 71922bacd183 |
children | a5e806e784e7 |
line wrap: on
line source
#include <stdio.h> int main(){int a,c=1;b:a=getchar();if(a==EOF)return 0;if(!(a&128)||(a&192))printf("\e[%d;1m","\37! $\"#"[c]);putchar(a);c=c+1-6*(c>4);goto b;}