9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: Eran Gabber eran@research.bell-labs.com
Subject: [9fans] question
Date: Thu,  4 Sep 1997 12:20:02 -0400	[thread overview]
Message-ID: <19970904162002.YUMXexbFeG1_a3YPdJzYN6XlhnPg1CRGUnVjSIvJD8s@z> (raw)

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("");
}





             reply	other threads:[~1997-09-04 16:20 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1997-09-04 16:20 Eran [this message]
  -- strict thread matches above, loose matches on Subject: below --
2003-07-21  8:13 [9fans] Question Ronny Plenio
2002-07-18 17:43 forsyth
2002-07-18 17:17 Victor LeNettoyeur ™
1997-09-04 20:37 [9fans] question forsyth
1997-09-04 15:28 Tom
1997-09-04 12:52 

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=19970904162002.YUMXexbFeG1_a3YPdJzYN6XlhnPg1CRGUnVjSIvJD8s@z \
    --to=9fans@9fans.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).