/***********************************************\ * Echo - just a small echo-replacement * * with some enhancements I've * * wrote 2 years ago. * \***********************************************/ /* This program is *NOT* public domain, but may be copied and distributed on a not-for-profit manner. It may be included in Fred's library. Any other 'Library-Creators' must ask me before including this program on their disk (I hate to do that, but there are so many people over here in germany that make people pay 10 Marks for some disks, half-full, and with programs they take from other disks...) Send any bug-reports, letters of appreciation, Porsche 911 or other small gifts to the following address: (and I'd really like to know what WBSize does on a NTSC Amy...) Garry Glendown Güldene Kammer 35 6430 Bad Hersfeld West Germany Or for the people lucky enough to get to some Bitnet or Usenet node: Garry@DGIHRZ01.BITNET */ #include int t,g; BYTE flag; UBYTE code[][9]={ {12,0}, /*Clear*/ {0x9b,0x4a,0}, /*ClrEOD*/ {0x9b,1,0x53,0}, {0x9b,1,0x54,0}, /*Scroll up/down*/ {0x9b,1,0x41,0}, {0x9b,1,0x42,0}, /*Cursor up/down*/ {0x9b,1,';',1,0x48,0}, /*Cursor x/y*/ {0x9b,1,';',1,';',1,0x6d} /*Style*/ }; char st[]={'p','b',0xfe,'i','u'}; char **arv; int arc; /* Attention! If the C-Compiler you use splits the CLI-Argument "The Test" into two arguments, you'll have to leave this routine in the program. If it returns the string `The Text' as one argument, take it out! (=Aztec 3.4, probably 3.6, too) */ String() { char y[256]; int g,j; y[0]='\0'; if (arv[t][strlen(arv[t])-1]!='\"') { strcat(y,&arv[t][1]); do { strcat(y," "); strcat(y,arv[++t]); } while (arv[t][strlen(arv[t])-1]!='\"'&&t