🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nn
Article #973

"no news" message unviewable in an xterm

#973
From: Lyndon Nerenberg
Date: Tue, 09 Oct 1990 22:58
20 lines
1658 bytes
When nn starts up, it puts the terminal in "raw" mode, then goes
out to check for news. If there isn't any news, it displays the
"no news ..." message (in raw mode), then resets the terminal to
cooked mode and exits. This results in the "no news ..." message
only appearing on the screen for however long it takes nn to
reset the terminal after doing the final screen redraw. When
running in an xterm on a Sparcstation, this is under 0.1 seconds,
making the message all but unviewable.

The solution would be to only put the terminal into raw mode if
there is actual news to be read. If there isn't any news, the
"no news ..." message can then be printed using an fputs() call,
which will cause it to appear in the correct portion of the terminals
memory.

-- 
    Lyndon Nerenberg  VE6BBM / Computing Services / Athabasca University
        {alberta,cbmvax,mips}!atha!lyndon || lyndon@cs.athabascau.ca

      The only thing open about OSF is their mouth.  --Chuck Musciano
Technical Details
Message-ID: <347@aupair.cs.athabascau.ca>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!archive!mbox2nntp-news.software.nn.mbox.zip!gmdzi!unido!mcsun!sunic!uupsi!rpi!zaphod.mps.ohio-state.edu!wuarchive!cs.utexas.edu!uunet!van-bc!ubc-cs!alberta!aunro!aupair.cs.athabascau.ca!lyndon

Show Full Headers
Complete Article Headers
Message-ID: <347@aupair.cs.athabascau.ca>
Subject: "no news" message unviewable in an xterm
Date: Tue, 09 Oct 1990 22:58:27 +0000
From: lyndon@cs.athabascau.ca (Lyndon Nerenberg)
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!archive!mbox2nntp-news.software.nn.mbox.zip!gmdzi!unido!mcsun!sunic!uupsi!rpi!zaphod.mps.ohio-state.edu!wuarchive!cs.utexas.edu!uunet!van-bc!ubc-cs!alberta!aunro!aupair.cs.athabascau.ca!lyndon
Newsgroups: news.software.nn
Organization: Athabasca University
Lines: 20
Posted: Tue Oct 9 23:58:27 1990