public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: David Corbin <dcorbin@machturtle.com>
To: linux-kernel@vger.kernel.org
Cc: alan@redhat.com
Subject: [PATCH]: console, kernel 2.2.18
Date: Fri, 23 Feb 2001 07:45:21 -0500	[thread overview]
Message-ID: <3A965B61.B76A96A1@machturtle.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 446 bytes --]

Attached is my first submitted patch, so please be gentle.  It's
actually made against the 2.2.18 kernel, but it should work fine against
2.4.2 from what I can tell.

The patch is extremely simple, but I would welcome testing and feedback
(I am not on the kernel mailing list).

It provides an ioctl call that will forcibly blank the screen.  It is
essentially the counterpart to TIOCLINUX, subcode=4.


-- 
David Corbin 		
dcorbin@machturtle.com

[-- Attachment #2: patch-dsc-2.2.18a --]
[-- Type: text/plain, Size: 587 bytes --]

--- linux-2.2.18/drivers/char/console.c	Sun Dec 10 19:49:41 2000
+++ linux/drivers/char/console.c	Fri Feb 23 06:54:40 2001
@@ -66,6 +66,9 @@
  *
  * Resurrected character buffers in videoram plus lots of other trickery
  * by Martin Mares <mj@atrey.karlin.mff.cuni.cz>, July 1998
+ * 
+ * Added ioctl sub-code to forcibly blank screen.
+ * by David Corbin <dcorbin@ieee.org>, February 2001
  */
 
 #include <linux/module.h>
@@ -2139,6 +2142,9 @@
 			return 0;
 		case 12:	/* get fg_console */
 			return fg_console;
+		case 13:
+			blank_screen();
+			return 0;
 	}
 	return -EINVAL;
 }

[-- Attachment #3: README --]
[-- Type: text/plain, Size: 88 bytes --]

Provide ioctl on console to force immediate "blanking", David Corbin <dcorbin@ieee.org>

                 reply	other threads:[~2001-02-23 12:45 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=3A965B61.B76A96A1@machturtle.com \
    --to=dcorbin@machturtle.com \
    --cc=alan@redhat.com \
    --cc=linux-kernel@vger.kernel.org \
    /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