Re: [OT] Two basic programming questions

Richard B. Johnson (root@chaos.analogic.com)
Fri, 22 Oct 1999 21:56:49 -0400 (EDT)


Most terminals 'know' VT100 escape sequences, at least to clear the
screen. A quick (and very dirty) hack is:

const char cls[]={27, '[', 'H', 27, '[', 'J', 0};

printf(cls);

Promise you won't tell anybody I told you this!!
Real programmers don't use termcap.

Cheers,
Dick Johnson

Penguin : Linux version 2.3.13 on an i686 machine (400.59 BogoMips).
Warning : It's hard to remain at the trailing edge of technology.

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/