Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

A filter of eliminating escape sequence from troff output

2 views
Skip to first unread message

Takanori Oshiro

unread,
Jun 2, 2021, 4:30:28 AM6/2/21
to
In order to print manual by text printer I wrote this program
This program can not eliminate kernel mode

#include <stdio.h>
int main(void){
int c;
while((c=getchar()) != EOF){
if(c=='\033'){
getchar();
getchar();
getchar();
}
else{
putchar(c);
}
}
}
0 new messages