version 1.1, 1995/10/18 08:46:28 |
version 1.2, 1995/11/13 04:03:51 |
|
|
#endif /* not lint */ |
#endif /* not lint */ |
|
|
#include <stdio.h> |
#include <stdio.h> |
|
#include <stdlib.h> |
|
#include <string.h> |
|
|
#define IESC '\033' |
#define IESC '\033' |
#define SO '\016' |
#define SO '\016' |
|
|
char *termtype; |
char *termtype; |
FILE *f; |
FILE *f; |
char termcap[1024]; |
char termcap[1024]; |
char *getenv(), *strcpy(); |
|
|
|
termtype = getenv("TERM"); |
termtype = getenv("TERM"); |
if (termtype == NULL || (argv[0][0] == 'c' && !isatty(1))) |
if (termtype == NULL || (argv[0][0] == 'c' && !isatty(1))) |
|
|
if (f == NULL) { |
if (f == NULL) { |
perror(argv[optind]); |
perror(argv[optind]); |
exit(1); |
exit(1); |
} else |
} |
filter(f); |
|
|
filter(f); |
|
fclose(f); |
} |
} |
exit(0); |
exit(0); |
} |
} |