Commit 05b9f1c8 authored by rswindell's avatar rswindell
Browse files

Add '-ice' command-line option treat to ANSI "Blink" sequences as

bright-background (iCE colors) using the new (to v3.17c) Ctrl-AE sequence
rather than Ctrl-AI.
parent 5c4caa5a
......@@ -53,6 +53,7 @@ static void print_usage(const char* prog)
fprintf(stderr,"\nSynchronet ANSI-Terminal-Sequence to Ctrl-A-Code Conversion Utility v%s\n",revision);
fprintf(stderr,"\nusage: %s infile.ans [outfile.asc | outfile.msg] [[option] [...]]\n",prog);
fprintf(stderr,"\noptions:\n\n");
fprintf(stderr,"-ice treat blink as bright-background (iCE colors)\n");
fprintf(stderr,"-<columns> insert conditional-newlines to force wrap (e.g. -80)\n");
fprintf(stderr,"-newline append a newline (CRLF) sequence to output file\n");
fprintf(stderr,"-clear insert a clear screen code at beginning of output file\n");
......@@ -68,6 +69,7 @@ int main(int argc, char **argv)
int i,ch,ni;
FILE *in=stdin;
FILE *out=stdout;
int ice=0;
int cols=0;
int column=0;
int delay=0;
......@@ -93,6 +95,8 @@ int main(int argc, char **argv)
return -1;
}
}
else if(strcmp(argv[i], "-ice") == 0)
ice = 1;
else if(strcmp(argv[i], "-clear") == 0)
clear = 1;
else if(strcmp(argv[i], "-pause") == 0)
......@@ -190,10 +194,7 @@ int main(int argc, char **argv)
case 5: /* blink */
case 6:
case 7:
fputc('I',out);
break;
case 8: /* concealed */
fputc('E',out); /* Elite-text, long unsupported (but should be resurrected?) */
fputc(ice ? 'E': 'I',out);
break;
case 30:
fputc('K',out);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment