aboutsummaryrefslogtreecommitdiffstats
path: root/vbistuff
diff options
context:
space:
mode:
authorGerd Hoffmann <kraxel@redhat.com>2010-04-01 09:24:41 (GMT)
committerGerd Hoffmann <kraxel@redhat.com>2010-04-01 09:24:41 (GMT)
commit45a153b46c280b51471ec12854cce623ef8f92be (patch)
treef4387c5c580e750919d0e5106327df0d0c54a645 /vbistuff
parentc75c37f7104480a0d386a9e0caa8a72335395503 (diff)
v3.95
Diffstat (limited to 'vbistuff')
-rw-r--r--vbistuff/ntsc-cc.c18
1 files changed, 14 insertions, 4 deletions
diff --git a/vbistuff/ntsc-cc.c b/vbistuff/ntsc-cc.c
index 78b6cc9..8a4effb 100644
--- a/vbistuff/ntsc-cc.c
+++ b/vbistuff/ntsc-cc.c
@@ -220,7 +220,9 @@ static int XDSdecode(int data)
{
infoptr = info[mode][type];
memcpy(info[mode][type],newinfo[mode][type],length+1);
- printf("\33[33m%%");
+ if (!plain)
+ printf("\33[33m");
+ putchar('%');
switch ((mode<<8) + type)
{
case 0x0101:
@@ -273,7 +275,9 @@ static int XDSdecode(int data)
printf(" DESC: %s",infoptr);
break;
}
- printf("\33[0m\n");
+ if (!plain)
+ printf("\33[0m");
+ putchar('\n');
fflush(stdout);
}
mode = 0; type = 0;
@@ -335,7 +339,10 @@ static int webtv_check(char * buf,int len)
if(!strncmp(buf,temp,4))
{
buf[5]=0;
- printf("\33[35mWEBTV: %s\33[0m\n",buf-nbytes-1);
+ if (!plain)
+ printf("\33[35mWEBTV: %s\33[0m\n",buf-nbytes-1);
+ else
+ printf("WEBTV: %s\n",buf-nbytes-1);
fflush(stdout);
}
return 0;
@@ -441,7 +448,10 @@ static int CCdecode(int data)
for (y=0;y<keywords;y++)
if (!strncasecmp(keyword[y], ccbuf[ccmode]+x, strlen(keyword[y])))
printf("\a");
- printf("%s\33[m\n",ccbuf[ccmode]);
+ if (!plain)
+ printf("%s\33[m\n",ccbuf[ccmode]);
+ else
+ printf("%s\n",ccbuf[ccmode]);
fflush(stdout);
/* FALL */
case 0x2A: //text restart

Privacy Policy