| From(投稿者): | Takanori Oshiro <aisiurika@yahoo.co.jp> |
|---|---|
| Newsgroups(投稿グループ): | fj.sources |
| Subject(見出し): | A filter of eliminating escape sequence from troff output |
| Date(投稿日時): | Wed, 02 Jun 2021 17:30:24 +0900 |
| Organization(所属): | Aioe.org NNTP Server |
| Message-ID(記事識別符号): | (G) <86y2bsvfbz.fsf@yahoo.co.jp> |
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);
}
}
}