<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"><html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"><head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> <meta name="keywords" content="9p, 9p2000, research, Plan 9, Inferno, Unix, Open Source, Bell Labs" /> <meta name="description" content="Open source distributed operating system Plan 9 from Bell Labs." /> <link rel="stylesheet" href="/wiki-style.css" media="all" type="text/css" /> <title>Avoiding Screen Pollution from Kernel Messges (Diff)</title></head><body><h1><a name="top"></a>Avoiding Screen Pollution from Kernel Messges <i>-Diff-</i></h1><div class='body'> <!-- ***************************** --><hr /><div class='diff_head'><a href="index.html">Mon Jan 14 16:21:29 EST 2008</a>, glenda</div><hr />Don'tyoujusthateitwhenkernelmessagespolluteyourdisplayintheformofthoseannoyingblackrectanglesoverlaidabovewhateveryou'reworkingon?Thisisaknownbugin<a href="http://plan9.bell-labs.com/magic/man2html/1/rio"><i>rio</i>(1)</a>;forfurtherdetail,seeRobPike's<a href="http://9fans.net/archive/2000/10/203">message</a>tothiseffect.<p class='para'>Toworkaroundthisproblem,openanewterminalwindowanddo:</p><pre>cat /dev/kprint</pre><p class='para'>Thisworksbecause,accordingtothekprintdiscussionin<a href="http://plan9.bell-labs.com/magic/man2html/3/cons"><i>cons</i>(3)</a>,"if(the)consoleisagraphicsscreen,thedataissenteithertothedisplayortokprint,butnotboth."</p><p class='para'>Anothermorepermanentsolutiontotheproblemistoput</p><pre>cat /dev/kprint >/dev/null >[2=1]</pre><p class='para'>somewhereintermrc(see<a href="http://plan9.bell-labs.com/magic/man2html/8/cpurc"><i>cpurc</i>(8)</a>).</p><hr></div> <!-- ***************************** --><hr class='banner_sep' /><div class='banner'><ul> <li><a href="../plan_9_wiki/">Wiki</a></li> <li><a href="../Documentation/">Docs</a></li> <li><a href="../news/">News</a></li> <li><a href="../development/">Devel</a></li> <li><a href="../papers/">Papers</a></li> <li><a href="../download/">Download</a></li></ul></div><hr class='footer_sep' /><div class='footer'> <a href="./">Current Page</a> - <span class='last_mod'>Last modified Mon Jan 14 16:21:29 EST 2008</span><br /> <div class='about_wiki'><a href="http://plan9.bell-labs.com/plan9"><img align="middle" src="http://plan9.bell-labs.com/plan9/img/power36.gif" alt="Powered by Plan 9" /></a> <a href="../about.html">About this Wiki</a> </div></div></body></html>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta name="keywords" content="9p, 9p2000, research, Plan 9, Inferno, Unix, Open Source, Bell Labs" />
<meta name="description" content="Open source distributed operating system Plan 9 from Bell Labs." />
<link rel="stylesheet" href="/wiki-style.css" media="all" type="text/css" />
<title>Avoiding Screen Pollution from Kernel Messges (Diff)</title>
</head>
<body>
<h1><a name="top"></a>
Avoiding Screen Pollution from Kernel Messges <i>-Diff-</i></h1>
<div class='body'> <!-- ***************************** -->
<hr /><div class='diff_head'>
<a href="index.html">Mon Jan 14 16:21:29 EST 2008</a>, glenda
</div><hr />Don't
you
just
hate
it
when
kernel
messages
pollute
your
display
in
the
form
of
those
annoying
black
rectangles
overlaid
above
whatever
you're
working
on?
This
is
a
known
bug
in
<a href="http://plan9.bell-labs.com/magic/man2html/1/rio"><i>rio</i>(1)</a>;
for
further
detail,
see
Rob
Pike's
<a href="http://9fans.net/archive/2000/10/203">message</a>
to
this
effect.
<p class='para'>
To
work
around
this
problem,
open
a
new
terminal
window
and
do:
</p>
<pre>
cat /dev/kprint
</pre>
<p class='para'>
This
works
because,
according
to
the
kprint
discussion
in
<a href="http://plan9.bell-labs.com/magic/man2html/3/cons"><i>cons</i>(3)</a>,
"if
(the)
console
is
a
graphics
screen,
the
data
is
sent
either
to
the
display
or
to
kprint,
but
not
both."
</p>
<p class='para'>
Another
more
permanent
solution
to
the
problem
is
to
put
</p>
<pre>
cat /dev/kprint >/dev/null >[2=1]
</pre>
<p class='para'>
somewhere
in
termrc
(see
<a href="http://plan9.bell-labs.com/magic/man2html/8/cpurc"><i>cpurc</i>(8)</a>).
</p>
<hr>
</div> <!-- ***************************** -->
<hr class='banner_sep' />
<div class='banner'>
<ul>
<li><a href="../plan_9_wiki/">Wiki</a></li>
<li><a href="../Documentation/">Docs</a></li>
<li><a href="../news/">News</a></li>
<li><a href="../development/">Devel</a></li>
<li><a href="../papers/">Papers</a></li>
<li><a href="../download/">Download</a></li>
</ul>
</div>
<hr class='footer_sep' />
<div class='footer'>
<a href="./">Current Page</a> -
<span class='last_mod'>Last modified Mon Jan 14 16:21:29 EST 2008</span>
<br />
<div class='about_wiki'>
<a href="http://plan9.bell-labs.com/plan9"><img align="middle" src="http://plan9.bell-labs.com/plan9/img/power36.gif" alt="Powered by Plan 9" /></a>
<a href="../about.html">About this Wiki</a>
</div>
</div>
</body></html>