🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: alt.msdos.programmer
2 messages
2 total messages Started by Doug Eastick Mon, 19 Mar 1990 14:19
PC Curses (1.4) and Colo[u]rs
#473
Author: Doug Eastick
Date: Mon, 19 Mar 1990 14:19
10 lines
848 bytes
I'm using PC Curses (by Bjorn) and TC 2.0. I want to give each window a unique
colo[u]r.  Curses.h mentions that colo[u]r #defines should go in
there, but nothing else.

My guess is that I use wattron().  The TC colour functions don't seem
to do anything because curses bypasses the way TC sets the colour.

Any help greatly appreciated, quickly.  Thanks.
--
Doug Eastick -- eastick@me.utoronto.ca
Re: PC Curses (1.4) and Colo[u]rs
#474
Author: Frotz
Date: Wed, 21 Mar 1990 03:21
58 lines
3318 bytes
eastick@me.utoronto.ca (Doug Eastick) writes:

] I'm using PC Curses (by Bjorn) and TC 2.0. I want to give each window
] a unique colo[u]r.  Curses.h mentions that colo[u]r #defines should go
] in there, but nothing else. 

I am working on a program that uses this (with colors) and it looks sharp.

] My guess is that I use wattron().  The TC colour functions don't seem
] to do anything because curses bypasses the way TC sets the colour.

In the 1.5 release the call will be wattron( win, F_YELLOW|B_BLUE );.
Naturally, this causes some problems with subsequent calls like
wattron( win, A_STANDOUT );.  The 1.5 wattron() and cousins attempt to
do something rational. 

Bjorn (unless things have changed) will be unable to work on PCcurses
for a few months.  I submitted my major 1.3 hacks to him for release
as 1.4.  About that time, uunet went down for about 3 weeks (or at
least mail was delayed for 22+ days in or around uunet).  Bjorn,
having not heard from me, released 1.4 in January.  My 1.3+ finally
got to him via FedEx after 1.4 hit the net.  I am in the process of
merging my 1.3+ with his 1.4 release and will be releasing it as 1.5
(with master source going back to Bjorn).  Here is a short list of
the major features added to 1.3+:

+	Direct Video Writes or BIOS Video Writes.  (Rough speed ratio: 2.5:1)
+	EGA/VGA Support (80x43 or 80x28/80x50).
+	Resizable windows.  (WINDOW* _resize_win(...);).
+	Inclusion of X/Open pads (windows of len x wid not attached to the
				  screen).
+	Full reliance on C (No assembly modules).
+	With the exception of four functions, it support the X/Open spec.
+/-	Only tested with Turbo C 2.0
+	Added Alt key (etc) support.
+	Canonical Attributes are augmented with F_[B]<color> and B_[B]<color>
-	I am doing this in my ___copious___ spare time (NIL).  It may take
	a while to get it to the net.  Also, I want to try to protect
	Bjorn a little more than he might like, so there might be a 
	small delay there.

	Basically, commercial/share developers must send in there
	modifications of the library if they wish to use it.  Non-
	Exclusive Cross Licenses will be negotiated.  (Digital Research,
	Inc. did this and it was a real hassle to get to the point of
	saying that "Hey what we need it a Cross License!"  This is
	an attempt to minimize the time needed here.  I see no problems
	with educational sites.
-	ETA to the net: 1-2 months.

	[Bjorn, If you see this, let me know what you think...]

-- Frotz@Digital Research, Incorporated		amdahl!drivax!frotz
	 Graphics Business Unit			(408) 647-6570 (msg)
	 70 Garden Court, B15			(408) 649-3896
	 Monterey, California  93940		Ask for John Fa'atuai

[This is News.  This is your brain on News.  Any questions?]
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads