9fans archive / 1997 / 09 / 23 / prev next
From: Eran Gabber eran@res...
Subject: [9fans] question
Date: Thu, 4 Sep 1997 12:20:02 -0400 (EDT)
On Thu, 4 Sep 1997, Franklin Robert Araujo =?iso-8859-1?Q?Fran=E7a?= wrote:
> Is there in Plan 9 a command like "clear" of UNIX or "clrscr" of DOS?
>
> Franklin.
>
The following program clears the current 8.5 window.
It behaves much like Unix "clear".
Enjoy.
Eran
======
/*
* Clear the window
*/
#include <u.h>
#include <libc.h>
#include <libg.h>
void
main(int argc, char *argv[])
{
binit(0, 0, 0);
bitblt(&screen, screen.clipr.min, &screen, screen.clipr, Zero);
bflush();
exits("");
}