| PLEX86 | ||
breastle screen for HLA Adventure Need help designing one 973
Jim Carlock I don't have ANSI.SYS installed either, but what I do have installed I can compile the following program which outputs ANSI codes to draw a red, white and blue flag. * flag-ansi.c 22-nov-89 *#define esc 27 main() { int c; printf("%cH%cJ",esc,esc); printf("%c37;44m",esc); printf(" * * * * * * "); stripe(1,46); printf("%c37;44m",esc); printf(" * * * * * "); stripe(1,46); printf("%c37;44m",esc); printf(" * * * * * * "); stripe(0,46); printf("%c37;44m",esc); printf(" * * * * * "); stripe(0,46); printf("%c37;44m",esc); printf(" * * * * * * "); stripe(1,46); printf("%c37;44m",esc); printf(" * * * * * "); stripe(1,46); printf("%c37;44m",esc); printf(" * * * * * * "); stripe(0,46); printf("%c37;44m",esc); printf(" * * * * * "); stripe(0,46); printf("%c37;44m",esc); printf(" * * * * * * "); stripe(1,46); printf("%c37;44m",esc); printf(" * * * * * "); stripe(1,46); printf("%c37;44m",esc); printf(" * * * * * * "); stripe(0,46); printf("%c37;44m",esc); printf(" "); stripe(0,46); { stripe(1,80); stripe(1,80); stripe(0,80); stripe(0,80); } stripe(1,80); stripe(1,80); } breastle screen for HLA Adventure Need help designing one 974 Okay, Paul, I've tried to colour in the picture using "TheDraw"...but, to be honest, I think it looks worse coloured in than it did monochrome...as you can only colour in entire blocks with... stripe(bold,size) int bold,size; { int i; printf("%c41m",esc); else printf("%c47m",esc); putchar(' '); printf("%c0m-n",esc); } When the compiled program is run from either the Cygwin shell or the standard Windows cmd window, the flag comes out perfect. I would guess the Cygwin.dll needed by the compiled program is providing the ANSI interpretation. If the text is captured to a file, say flagtest.txt, then from Cygwin $ cat flagtest.txt displays correctly, but from Windows cmd does not.
|
||||
breastle screen for HLA Adventure Need help designing one 974 Alt Folklore Computers from Newsgroups The #1 Usenet Provider on the Internet
breastle screen for HLA Adventure Need help designing one 972 |
||||