Article View: news.software.readers
Article #44320Re: [slrn.0953.win95] can't do "slrn --spool"
From: David R. Conrad
Date: Fri, 06 Nov 1998 00:00
Date: Fri, 06 Nov 1998 00:00
56 lines
3281 bytes
3281 bytes
In article <71odo1$84b@lotho.delphi.com>, Todd Fiske wrote:
>I was able to reproduce your flashing screen problem ....
>
>Edit uses bright backgrounds for buttons and some window controls. It
>obviously sets the "bright background" bit on entry, and sets it back to
>blink mode when exiting. It obviously doesn't assume that anyone else may
>be using the bright background setting. I don't know if that setting is
>readable, but if it is, Edit is not doing it.
It is readable, and since there seems to be such a DIY attitude among
slrn users (with a number of articles on this group discussing the
writing of macros to achieve various functions) I thought I would post
some source code in case someone wants to write a wrapper program that
would save the state of the bit and run edit as a subprocess, and then
restore state of the blinking bit afterwards.
The following is a variation on a program that I wrote for DOS in Turbo
Pascal 5.5 several years ago. It demonstrates the method for setting,
clearing, and testing bit 3 of VGA register 0x3c0 index 0x10 which
controls whether the high bit of the background text color causes the
text to blink (if the bit is set) or the background to appear bright
(if the bit is clear).
program blinker;
var
b : byte;
begin
(* force register $3C0 flipflop into address mode *)
b := port[$3DA];
(* access vga register $3C0 index $10 *)
port[$3C0] := $10 + 32;
(* read current value *)
b := port[$3C1];
if (b AND 8 <> 0) then writeln('Blinking is on, turning it off')
else writeln('Blinking is off, turning it on');
(* toggle the bit *)
b := b XOR 8;
(* write the modified byte back *)
port[$3C0] := b;
end.
Regarding the other problems, such as characters ending up out of order
as text is typed, I can say that I've never seen this behavior on Linux,
and perhaps one solution might be to apply a jar of "Real Operating
System" creme to the problem as needed? ;-)
--
David R. Conrad <drc@adni.net>
"On two occasions I have been asked [by members of Parliament!], `Pray,
Mr. Babbage, if you put into the machine wrong figures, will the right
answers come out?' I am not able rightly to apprehend the kind of
confusion of ideas that could provoke such a question." -- Charles Babbage
Technical Details
Message-ID:
<slrn745jhp.6r4.drc@darwin.adni.net>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.mbox.zip!not-for-mailReferences:
<slrn73mr02.3vvo667.tfiske@70451.1424.compuserve.com> <71gsim$g2t$2@thingy.apana.org.au> <71j46i$ih@lotho.delphi.com> <71jsc1$2nu$2@youknow.apana.org.au> <71odo1$84b@lotho.delphi.com>Show Full Headers
Complete Article Headers
Message-ID: <slrn745jhp.6r4.drc@darwin.adni.net> Subject: Re: [slrn.0953.win95] can't do "slrn --spool" Date: Fri, 06 Nov 1998 00:00:00 +0000 From: drc@darwin.adni.net (David R. Conrad) References: <slrn73mr02.3vvo667.tfiske@70451.1424.compuserve.com> <71gsim$g2t$2@thingy.apana.org.au> <71j46i$ih@lotho.delphi.com> <71jsc1$2nu$2@youknow.apana.org.au> <71odo1$84b@lotho.delphi.com> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.mbox.zip!not-for-mail X-Deja-AN: 408983042 Cache-Post-Path: nntp.adni.net!drc@adn-cust95.advdata.net Organization: Advanced Data Net (Nationwide Internet Access) - 1-877-CALL-ADN X-Cache: nntpcache 2.3.2.1 (see http://www.nntpcache.org/) User-Agent: slrn/0.9.5.3 (UNIX) NNTP-Posting-Date: Fri, 06 Nov 1998 05:24:54 EDT Newsgroups: news.software.readers