559 lines
20 KiB
Plaintext
559 lines
20 KiB
Plaintext
From: Digestifier <Linux-Misc-Request@senator-bedfellow.mit.edu>
|
||
To: Linux-Misc@senator-bedfellow.mit.edu
|
||
Reply-To: Linux-Misc@senator-bedfellow.mit.edu
|
||
Date: Tue, 13 Sep 94 08:13:13 EDT
|
||
Subject: Linux-Misc Digest #751
|
||
|
||
Linux-Misc Digest #751, Volume #2 Tue, 13 Sep 94 08:13:13 EDT
|
||
|
||
Contents:
|
||
Re: DOOM, X, Linux, 320x200 video mode ?? (Dennis Flaherty)
|
||
Re: memory above 16Mb? ISA SYSTEM (Rich Derr)
|
||
Re: What do I get moving from 1.0.9 to 1.1.49? (Russell Nelson)
|
||
RAMDAC's in ATI Ultra Pro (Paal Beyer)
|
||
Re: Linux DOOM is very impressive! (Trent Piepho)
|
||
Re: What is a BogoMIP? (H. Peter Anvin)
|
||
Re: Horrific bug in DOOM! (Kevin Lentin)
|
||
Re: The snatchability factor (was Re: WABI vs (J.J. Paijmans)
|
||
Re: DOOM and Linux (H. Peter Anvin)
|
||
Re: Games Make the OS (was: Re: Can't Run Doom!!) (Rob Janssen)
|
||
Re: Horrific bug in DOOM! (H. Peter Anvin)
|
||
Re: color from ncurses on console (Miguel de Icaza)
|
||
|
||
----------------------------------------------------------------------------
|
||
|
||
Crossposted-To: alt.games.doom,sci.electronics
|
||
From: dennisf@denix.elk.miles.com (Dennis Flaherty)
|
||
Subject: Re: DOOM, X, Linux, 320x200 video mode ??
|
||
Date: Tue, 13 Sep 1994 05:00:23 GMT
|
||
|
||
In article <NELSON.94Sep10224944@crynwr.crynwr.com>,
|
||
Russell Nelson <nelson@crynwr.crynwr.com> wrote:
|
||
> In article <34rbks$1ch@news.u.washington.edu> tzs@u.washington.edu
|
||
> (Tim Smith) writes:
|
||
>
|
||
> Bill C. Riemers <bcr@physics.purdue.edu> wrote:
|
||
> > 2. There is significant delay between action and sound. i.e. I
|
||
> > can fire my gun and then turn halfway around before the gun
|
||
> > sound comes through my speakers.
|
||
>
|
||
> Get shorter speaker cables.
|
||
>
|
||
> No! Get thicker cables. The problem is that the electrons (which are
|
||
> really just like tiny elephants) can't travel as quickly in a narrow
|
||
> cable. They bump around too much if the wire isn't big enough. If
|
||
> you get thicker wires, then they can shoot straight down the middle
|
||
> without bumping into the walls.
|
||
>
|
||
> Electronics is really very simple if you understand the physics of it
|
||
> all.
|
||
|
||
No, no, no! He needs to put the monitor up above his head. Don't you
|
||
know that electrons go faster downhill? It's this thing called
|
||
"gravity". Any six-year-old knows this.
|
||
|
||
Sheese.
|
||
|
||
--
|
||
Dennis Flaherty dennisf@denix.elk.miles.com
|
||
Oatmeal Stout: It's the Right Thing to Drink!
|
||
|
||
------------------------------
|
||
|
||
From: rhd@interaccess.com (Rich Derr)
|
||
Crossposted-To: comp.os.linux.help
|
||
Subject: Re: memory above 16Mb? ISA SYSTEM
|
||
Date: 12 Sep 1994 14:35:37 -0500
|
||
|
||
In article <34jonp$d4e@lkxc01.telecom.ptt.nl>,
|
||
Andre Addicks <A.Addicks@telecom.ptt.nl> wrote:
|
||
>We are trying to setup a Compaq systempro (486/33 Mhz) with 24 Mb internal
|
||
>memory. We compiled the kernel (1.1.45) with the option:
|
||
>'Limit memory to low 16MB' CONFIG_MAX_16M n
|
||
>Still after booting Linux finds no more than 16Mb. Kernel message:
|
||
>"Memory 15004k/16256k available (652 kernel code, 384 reserved, 216k data)
|
||
>Anybody knows where to find the lost 8Mb ?
|
||
|
||
I have a similar problem. I have a Dell 486P/50 (ISA bus) with 24MB of RAM.
|
||
(IDE disk, ATI Vantage video, Wangtek QIC-02 tape.) POST reports 24 MB. Dell
|
||
UNIX (this machine's former OS) used all 24. Help? It would be really useful
|
||
for what I'm doing.
|
||
|
||
I think I've read the FAQ and HOW-TO and whatever, but I may have left
|
||
something out. Anyone? I've tried it with both 1.0.9 and 1.1.49 kernels
|
||
with CONFIG_MAX_16M set both ways. I know there are problems with >16M on
|
||
ISA systems, but since I didn't buy this one (it's been here two years
|
||
longer than I have) I won't take the blame for that.
|
||
|
||
??? Thanks.
|
||
--
|
||
... And you can tell everybody this is your .sig, * It may be quite simple but
|
||
since it's so big, * I hope you don't mind, I hope you don't mind, I hope that
|
||
you will let * Me say how glad I am that you're on the 'net.
|
||
Bernie Taupin (wish I knew) and Rich Derr (rhd@interacess.com)
|
||
|
||
------------------------------
|
||
|
||
From: nelson@crynwr.crynwr.com (Russell Nelson)
|
||
Subject: Re: What do I get moving from 1.0.9 to 1.1.49?
|
||
Date: 12 Sep 1994 20:29:46 GMT
|
||
|
||
In article <1994Sep10.213609.10850@dmu.ac.uk> rl@dmu.ac.uk (Robert Logan) writes:
|
||
|
||
Im curious as to what benefits a kernel upgrade
|
||
from 1.0.9 to 1.1.49 will give me - in general.
|
||
Ive already tried it and Ive noticed my CDROM now
|
||
works double-speed - a real benefit, but what are
|
||
the other main improvements overall?
|
||
|
||
Read the kernel patch summaries. ftp.emlist.com:pub/kchanges/*.
|
||
|
||
--
|
||
-russ <nelson@crynwr.com> http://www.crynwr.com/crynwr/nelson.html
|
||
Crynwr Software | Crynwr Software sells packet driver support | ask4 PGP key
|
||
11 Grant St. | +1 315 268 1925 (9201 FAX) | What is thee doing about it?
|
||
Potsdam, NY 13676 | LPF member - ask me about the harm software patents do.
|
||
|
||
------------------------------
|
||
|
||
From: beyer@idt.unit.no (Paal Beyer)
|
||
Crossposted-To: comp.os.linux.help,comp.windows.x.i386unix
|
||
Subject: RAMDAC's in ATI Ultra Pro
|
||
Date: 13 Sep 1994 10:15:37 GMT
|
||
|
||
Hi,
|
||
|
||
Im about to purchase a new video card, ATI Ultra Pro VL-bus.
|
||
I have heard that these cards have different RAMDAC's. Which
|
||
RAMDAC is the one to go for??? Some are slower than others
|
||
I've heard.
|
||
|
||
Which XFree-server version is the best to use ??
|
||
|
||
|
||
Please mail, I will send summary if needed, as the traffic here
|
||
may make me miss your reply.
|
||
|
||
Thanks in advance,
|
||
Paal Beyer
|
||
beyer@idt.unit.no
|
||
|
||
|
||
--
|
||
|
||
+-------------------+----------------------------------------------|
|
||
| Paal Beyer | Student at Norwegian Institute of Technology |
|
||
| beyer@idt.unit.no | |
|
||
+-------------------+----------------------------------------------|
|
||
| User of Linux, the free UNIX clone. |
|
||
+------------------------------------------------------------------+
|
||
|
||
------------------------------
|
||
|
||
From: xyzzy@u.washington.edu (Trent Piepho)
|
||
Subject: Re: Linux DOOM is very impressive!
|
||
Date: 12 Sep 1994 20:45:48 GMT
|
||
|
||
In article <351un6$if@senator-bedfellow.mit.edu>,
|
||
Jim Sun <jsun@athena.mit.edu> wrote:
|
||
>mark@taylor.infi.net (Mark A. Davis)
|
||
>>baart@Simplex.NL (Rene Baart) writes:
|
||
>
|
||
>>>All in all, this is something no Linux/X user should be without.
|
||
>>>Even without high-end equipment, you really should see this!
|
||
>
|
||
>>I beg to differ- it flies under MS-"DOS" here on a 486 33 DX with an ISA
|
||
>>16 bit Orchid Prodesiger II ET4000, 16MB RAM. Under Linux it crawls at
|
||
>>about 1 frame every two seconds. I don't think the requirement for
|
||
>>faster video cards is a joke.
|
||
>
|
||
>I hope Rene (the first poster) meant a tongue-in-cheek joke. I can't imagine
|
||
>what 386-40 running linuxxdoom is like. My current 486-25/75 with 16Mhz ISA
|
||
>(Stealth24) runs the dos version of doom about three times as fast my
|
||
>old 386-40 using the same card (on 10MHz ISA). Running linuxxdoom with the
|
||
>486-75, I can get smooth motion only at third smallest (yeah, now we are counting
|
||
>from innermost out, instead of from full-screen and inward) screen setting;
|
||
|
||
I've got a 486-66 /w 8 megs and a trident 8900cl (not 16 MHz), both of which
|
||
should give slower performance than your system. But my linuxdoom is just fine
|
||
in full window size. I think it is even faster than dos, but it will probably
|
||
slow down when I turn on sound. I think you just have some kind of setup
|
||
problem. Does it say "using MIT-SHM" when is starts up?
|
||
|
||
------------------------------
|
||
|
||
From: hpa@ahab.eecs.nwu.edu (H. Peter Anvin)
|
||
Subject: Re: What is a BogoMIP?
|
||
Reply-To: hpa@nwu.edu (H. Peter Anvin)
|
||
Date: Mon, 12 Sep 1994 23:58:51 GMT
|
||
|
||
Followup to: <351phq$rkq@Venus.mcs.com>
|
||
By author: tfors@MCS.COM (Thomas L. Fors)
|
||
In newsgroup: comp.os.linux.misc
|
||
>
|
||
> I am brand new to Linux (just installed it this weekend) and was
|
||
> wondering what the heck a BogoMIP is? I couldn't find an answer to
|
||
> this anywhere else.
|
||
>
|
||
|
||
It's one MIPS - two MIPS. Anyway. The BogoMIPS number is a
|
||
measurement of how fast your machine does absolutely nothing.
|
||
|
||
/hpa
|
||
--
|
||
INTERNET: hpa@nwu.edu --- Allah'u'abha ---
|
||
IBM MAIL: I0050052 at IBMMAIL HAM RADIO: N9ITP or SM4TKN
|
||
FIDONET: 1:115/511 or 1:115/512 STORMNET: 181:294/1 or 181:294/101
|
||
Help! I'm stuck on this planet!
|
||
|
||
------------------------------
|
||
|
||
From: kevinl@bruce.cs.monash.edu.au (Kevin Lentin)
|
||
Subject: Re: Horrific bug in DOOM!
|
||
Date: 13 Sep 1994 10:59:10 GMT
|
||
|
||
H. Peter Anvin (hpa@ahab.eecs.nwu.edu) wrote:
|
||
|
||
> The original name for the glorified boot loader now known as MS-DOS
|
||
> was QDOS, which stood for Quick and Dirty Operating System. Note that
|
||
> the letter Q has since been dropped.
|
||
|
||
Huh? I know QDOS as a separate product. Sort of in the lvein of 4DOS. Is
|
||
this a coincidence?
|
||
--
|
||
[==================================================================]
|
||
[ Kevin Lentin |___/~\__/~\___/~~~~\__/~\__/~\_| ]
|
||
[ kevinl@bruce.cs.monash.edu.au |___/~\/~\_____/~\______/~\/~\__| ]
|
||
[ Macintrash: 'Just say NO!' |___/~\__/~\___/~~~~\____/~~\___| ]
|
||
[==================================================================]
|
||
|
||
------------------------------
|
||
|
||
From: paai@kub.nl (J.J. Paijmans)
|
||
Crossposted-To: comp.sys.hp,comp.sys.hp.apps,comp.sys.sun.apps,comp.windows.x,comp.windows.x.apps,comp.unix.unixware
|
||
Subject: Re: The snatchability factor (was Re: WABI vs
|
||
Date: 12 Sep 1994 20:25:34 GMT
|
||
|
||
In article <Cw0wnw.4yK@novell.co.uk> msohnius@novell.co.uk (Martin Sohnius) writes:
|
||
>An unfortunate flame-has started here between J.J. (Hans) Paaijmans and
|
||
>myself. I had indeed not realised that he felt threatened by my occasional
|
||
>references to legal software copyright issues. He was not the target,
|
||
>and my argument with him was about totally different issues.
|
||
|
||
I felt not *threatened* but vexed by something I felt as a slight to my
|
||
ethics and professionalism. If you want to clarify your statements and
|
||
seek a solution, it is fine with me.
|
||
...
|
||
>
|
||
>What I saw as his problem in getting review copies, was NOT his opinions
|
||
>regarding nicked software, which he shares with most academic users I have
|
||
>ever spoken to, and which I describe i the snip as "mostly valid", but
|
||
>rather the combination of his earlier claim to be a computer journalist,
|
||
>and his obvious ignorance of arguably the biggest piece of PC-software news
|
||
>this year: the Novell-Wordperfect merger.
|
||
>
|
||
>But obviously, he didn't understand me on this point:
|
||
|
||
Right you are. And as you followed this thread, you should have seen this fact
|
||
before. But although the merger of Novell-WP did not escape me, it certainly
|
||
didn't and doesn't interest me, because my interest is in software, not
|
||
finance.
|
||
|
||
(hans paijmans):
|
||
>| guess in which department Martin (or should I say: Mister Sohnius)
|
||
>| is working...
|
||
>
|
||
(Herr Doktor Sohnius):
|
||
>In case you are interested, it's Dr. Sohnius, but Herr Sohnius, or even
|
||
>better, Herr Dr. Sohnius will do. And the department is Novell Labs, the
|
||
>Certification People.
|
||
>
|
||
>Looks like he still hasn't understood that UnixWare and Wordperfect
|
||
>come from the same company, for heaven's sake!
|
||
|
||
Me again:
|
||
Heaven just threw an english dictionary down (missed too!) and it pointed out
|
||
that "departments" generally are inside the same organisation. If I use that
|
||
word, it indicates that I am aware of both products belonging to the
|
||
same firm. In holland that does not mean that there may not be 'presidents'
|
||
of the separate departments, but perhaps I should use the word 'director'?
|
||
No, doesn't sound right. How do you call the boss of Wordperfect INSIDE the
|
||
Novell-WP company in the english language?
|
||
|
||
Anyway, rest assured. If our editor-in-chief wants a story about mergers
|
||
she certainly asks somebody else. If she wants a piece on the working of
|
||
software or design philosophy, she (sometimes) asks me.
|
||
|
||
And to flaunt your academic titles is childish. I don't either do I?
|
||
BTW if you are so alert on your titles, try to write my name correctly.
|
||
|
||
>OK, let's make one thing clear (again): that I came to the conclusion
|
||
>that he shouldn't get a review copy was not because he would be likely to
|
||
>pass it on in multitudes, but because I think he is not a journalist whose
|
||
>opinion about UnixWare or Novell I would like to see in print.
|
||
|
||
I can see that you rather would prefer articles about the financial activities
|
||
of your firm than about the qualities of Unixware. :-)
|
||
But thanks for the waring. I will spread the word under my collegues
|
||
that disagreeing with Herr Doktor M. Sohnius s.s.t.t. on Internet will get
|
||
them in trouble when they want to write about Novell or Wordperfect.
|
||
|
||
>fair, isn't it? He's got, after all, a point to prove, namely that UW "is
|
||
>a SMALL seller and likely will remain so".
|
||
|
||
There are some things we who are contributing to PCM do not do. One is
|
||
accepting bribes. And the other is letting personal pique get in the
|
||
way of our professional opinion (for what it is worth). I would like
|
||
to think that your ethics are the same. Again I feel quite vexed with
|
||
your opinion about the way I judge software I get for review.
|
||
|
||
>Well, it doesn't. There should be no discussion here. Hans believes
|
||
>that illegal copies in the long run help sales. I happen to believe
|
||
>that he is right. Thinking this, and arguing one's case is no offense
|
||
>in any sense. Putting up other people's software for free downloading
|
||
>is very doubtful, and indeed then downloading and using it is clearly
|
||
>illegal. So much for my layman's legal opinion.
|
||
>
|
||
>.. and just to be on the safe side, I finally include Hans' copy
|
||
>right notice, which applies to everything above:
|
||
>
|
||
>| --
|
||
>| Copyright Hans Paijmans 1994. Niets hierboven mag geheel of
|
||
>| gedeeltelijk worden geciteerd buiten de nieuwsgroep(en) waar het
|
||
>| oorspronkelijk is geplaatst. Nothing of the above may be cited
|
||
>| outside the newsgroups in which the message originally was posted.
|
||
>| ---------------------------
|
||
>
|
||
>and my own .sig (ditto)
|
||
>
|
||
> +--------------------------------------------+
|
||
>Martin Sohnius | "It doesn't matter whether the cat is |
|
||
>Novell Labs Europe | black or white, as long as it catches |
|
||
>Bracknell, England | mice." - Deng Xiaoping |
|
||
>+44-1344-724031 +--------------------------------------------+
|
||
> (I speak for myself, not for Novell or anyone else.)
|
||
|
||
If I translate your signature as "the goal justifies the means" I cannot
|
||
help but doubt your high-handed approach to ethics.
|
||
|
||
Martin (and everybody else on this thread): I do not want a quarrel with
|
||
you (except for the normal. light-hearted flamewars). But if you think
|
||
to attack me on my ethics or professionalism, you better count your
|
||
cojones first.
|
||
|
||
|
||
|
||
Paai.
|
||
|
||
|
||
--
|
||
Copyright Hans Paijmans 1994. Niets hierboven mag geheel of
|
||
gedeeltelijk worden geciteerd buiten de nieuwsgroep(en) waar het
|
||
oorspronkelijk is geplaatst. Nothing of the above may be cited
|
||
outside the newsgroups in which the message originally was posted.
|
||
|
||
------------------------------
|
||
|
||
Crossposted-To: alt.games.doom
|
||
From: hpa@ahab.eecs.nwu.edu (H. Peter Anvin)
|
||
Subject: Re: DOOM and Linux
|
||
Reply-To: hpa@nwu.edu (H. Peter Anvin)
|
||
Date: Tue, 13 Sep 1994 00:03:17 GMT
|
||
|
||
Followup to: <YiQU7_q00WB_EmIN9o@andrew.cmu.edu>
|
||
By author: Aaron G Goldstein <ag4z+@andrew.cmu.edu>
|
||
In newsgroup: comp.os.linux.misc
|
||
>
|
||
> Excerpts from netnews.alt.games.doom: 10-Sep-94 Re: DOOM and Linux by
|
||
> Christopher Wiles@wsuaix
|
||
> > That's four messages so far that report that pixel doubling is trashed.
|
||
> >
|
||
> > Gee, even though the README says "no bug reports," does anyone think iD
|
||
> > can be convinced to fix this?
|
||
> >
|
||
> > -- Chris
|
||
>
|
||
> I have a feeling that if there'd been an easy way to fix the problem, it
|
||
> wouldn't have been there (it even said that pixel-doubling didn't work
|
||
> right in the README.linux file). Personally, I think the option should
|
||
> have been removed if it couldn't be implemented correctly, but perhaps
|
||
> that's just my opinion. Besides, I'd rather see the DOOMWADDIR problem
|
||
> fixed before anything else.
|
||
|
||
The pixeldoubling and -tripling has been fixed. Here is a script that
|
||
will solve the DOOMWADDIR problem (at least, sort of). Install it as
|
||
/usr/local/bin/doom, and stick all the DOOM! files in /usr/local/lib/doom.
|
||
|
||
#!/bin/bash
|
||
#
|
||
# The Linux version of DOOM! doesn't seem to like it if the .wad files
|
||
# aren't in the current directory when playing. Solve this problem in
|
||
# an extremely klugy fashion.
|
||
#
|
||
# This script makes DOOMWADDIR work as advertised, and also implements
|
||
# an environment variable DOOMSAVEDIR, where your DOOM! saved games appear.
|
||
#
|
||
# Symbolic links saves the day...
|
||
#
|
||
# Written 1994-09-09 by H. Peter Anvin <hpa@nwu.edu>
|
||
#
|
||
|
||
allow_null_glob_expansion=Yes
|
||
|
||
DOOMSAVES="doomsav0.dsg doomsav1.dsg doomsav2.dsg \
|
||
doomsav3.dsg doomsav4.dsg doomsav5.dsg"
|
||
|
||
OLDDIR=`/bin/pwd`
|
||
|
||
mkdir /tmp/doom.$$
|
||
cd /tmp/doom.$$
|
||
|
||
if [ "$DOOMSAVEDIR" = "" ]; then
|
||
DOOMSAVEDIR="$OLDDIR"
|
||
fi
|
||
|
||
for dsg in $DOOMSAVES; do
|
||
ln -s $DOOMSAVEDIR//$dsg .
|
||
done
|
||
|
||
ln -s /usr/local/lib/doom/*.wad .
|
||
|
||
if [ "$DOOMWADDIR" = "" ]; then
|
||
DOOMWADDIR="$OLDDIR"
|
||
fi
|
||
|
||
ln -sf $DOOMWADDIR//*.wad . 2>/dev/null
|
||
|
||
ln -s /usr/local/lib/doom/sndserver .
|
||
|
||
/usr/local/lib/doom/linuxxdoom "$@"
|
||
|
||
cd /tmp
|
||
rm -rf doom.$$
|
||
|
||
|
||
|
||
--
|
||
INTERNET: hpa@nwu.edu --- Allah'u'abha ---
|
||
IBM MAIL: I0050052 at IBMMAIL HAM RADIO: N9ITP or SM4TKN
|
||
FIDONET: 1:115/511 or 1:115/512 STORMNET: 181:294/1 or 181:294/101
|
||
First hug free; all subsequent ones free.
|
||
|
||
------------------------------
|
||
|
||
From: rob@pe1chl.ampr.org (Rob Janssen)
|
||
Subject: Re: Games Make the OS (was: Re: Can't Run Doom!!)
|
||
Reply-To: pe1chl@rabo.nl
|
||
Date: Tue, 13 Sep 1994 09:01:58 GMT
|
||
|
||
In <deuelpm.55.2E74F478@craft.camp.clarkson.edu> deuelpm@craft.camp.clarkson.edu (Pete Deuel) writes:
|
||
|
||
>In article <351ms1$ccu@bruce.uncg.edu> root@tao.binary9.com (Nicholas J. Leon) writes:
|
||
|
||
[...]
|
||
|
||
Please keep DOOM off comp.os.linux.development
|
||
.misc is the right place for it, until everyone is convinced it needs a
|
||
newsgroup of its own...
|
||
|
||
Rob
|
||
--
|
||
=========================================================================
|
||
| Rob Janssen | AMPRnet: rob@pe1chl.ampr.org |
|
||
| e-mail: pe1chl@rabo.nl | AX.25 BBS: PE1CHL@PI8UTR.#UTR.NLD.EU |
|
||
=========================================================================
|
||
|
||
------------------------------
|
||
|
||
From: hpa@ahab.eecs.nwu.edu (H. Peter Anvin)
|
||
Subject: Re: Horrific bug in DOOM!
|
||
Reply-To: hpa@nwu.edu (H. Peter Anvin)
|
||
Date: Tue, 13 Sep 1994 00:07:15 GMT
|
||
|
||
Followup to: <1994Sep12.123153.13575@taylor.infi.net>
|
||
By author: mark@taylor.infi.net (Mark A. Davis)
|
||
In newsgroup: comp.os.linux.misc
|
||
>
|
||
> Linux is DOS. DOS stands only for "Disk Operating System". Most all
|
||
> operating systems are DOSes. It did not read MS-"DOS", which is a
|
||
> different story all together.....
|
||
>
|
||
|
||
No it doesn't. DOS (as in MS-DOS) stands for Dirty Operating System.
|
||
If you don't believe me, I suggest you check out what the *original*
|
||
name of the product was.
|
||
|
||
/hpa
|
||
|
||
P.S. You will *not* find the correct answer in any book from Microsoft
|
||
Press.
|
||
|
||
P.P.S. Answer below for the impatient.
|
||
|
||
|
||
|
||
The original name for the glorified boot loader now known as MS-DOS
|
||
was QDOS, which stood for Quick and Dirty Operating System. Note that
|
||
the letter Q has since been dropped.
|
||
--
|
||
INTERNET: hpa@nwu.edu --- Allah'u'abha ---
|
||
IBM MAIL: I0050052 at IBMMAIL HAM RADIO: N9ITP or SM4TKN
|
||
FIDONET: 1:115/511 or 1:115/512 STORMNET: 181:294/1 or 181:294/101
|
||
"All sysadmins love logs." -- Me after deleting 87 Mb worth of log files
|
||
|
||
------------------------------
|
||
|
||
From: miguel@sphinx.nuclecu.unam.mx (Miguel de Icaza)
|
||
Subject: Re: color from ncurses on console
|
||
Date: 13 Sep 1994 00:50:51 GMT
|
||
|
||
> Re: color from ncurses on console
|
||
> Is there some trick to this?
|
||
>
|
||
> Do I need to hack up the console termcap entry, or is it something
|
||
> more sinister?
|
||
|
||
You can use something like this:
|
||
|
||
void init_colors ()
|
||
{
|
||
hascolors = has_colors ();
|
||
if (hascolors){
|
||
start_color ();
|
||
init_pair (1, COLOR_WHITE, COLOR_BLUE); /* normal */
|
||
init_pair (2, COLOR_BLACK, COLOR_CYAN); /* selected */
|
||
init_pair (3, COLOR_YELLOW, COLOR_BLUE); /* marked */
|
||
init_pair (4, COLOR_YELLOW, COLOR_CYAN); /* marked/selected */
|
||
init_pair (5, COLOR_WHITE, COLOR_RED); /* errors */
|
||
init_pair (6, COLOR_WHITE, COLOR_CYAN); /* menu entry */
|
||
init_pair (7, COLOR_BLACK, COLOR_WHITE); /* reverse b&w */
|
||
}
|
||
}
|
||
|
||
And then just use: wattron (window, COLOR_PAIR(n)).
|
||
|
||
Hope this helps,
|
||
Miguel.
|
||
|
||
------------------------------
|
||
|
||
|
||
** FOR YOUR REFERENCE **
|
||
|
||
The service address, to which questions about the list itself and requests
|
||
to be added to or deleted from it should be directed, is:
|
||
|
||
Internet: Linux-Misc-Request@NEWS-DIGESTS.MIT.EDU
|
||
|
||
You can send mail to the entire list (and comp.os.linux.misc) via:
|
||
|
||
Internet: Linux-Misc@NEWS-DIGESTS.MIT.EDU
|
||
|
||
Linux may be obtained via one of these FTP sites:
|
||
nic.funet.fi pub/OS/Linux
|
||
tsx-11.mit.edu pub/linux
|
||
sunsite.unc.edu pub/Linux
|
||
|
||
End of Linux-Misc Digest
|
||
******************************
|