Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!seismo!mcvax!ukc!einode!simon From: simon@einode.UUCP (Simon Kenyon) Newsgroups: comp.unix.wizards Subject: Re: printcap questions Message-ID: <237@einode.UUCP> Date: Fri, 28-Nov-86 10:04:44 EST Article-I.D.: einode.237 Posted: Fri Nov 28 10:04:44 1986 Date-Received: Sat, 29-Nov-86 01:51:51 EST References: <4032@jhunix.UUCP> Organization: The National Software Centre, Dublin, IRELAND Lines: 62 ins_ajbh@jhunix.UUCP (JABBA the HUT): > I want to enable Ctrl-S, Ctrl-Q flow control with > the ability to pass escape strings AND have it do the > XTABS expansion. I tried a couple combinations of raw > and cbreak and no dice. Does anyone have a handy > combination of xs,xc,fs,fc to do the job?. If not I > can use the filter option of printcap to do the tab > expansion and run in raw mode since I have to prefix the > ESC string onto the data anyway. this works file for me: cat >/etc/printcap.simon <sf.c < main() { register int c, column; column = 0; while ((c = getchar()) != EOF) switch (c) { case '\t': do { putchar(' '); column++; } while (column & 07); break; case '\b': if (column) column--; putchar('\b'); break; case '\n': putchar('\r'); putchar('\n'); column = 0; break; default: putchar(c); column++; break; } exit(0); End-Of-File -- Simon Kenyon EUnet: simon@einode.UUCP Smail: The National Software Centre, Dublin, IRELAND Phone: +353-1-716255