Linux Color.
Laura Brody
laura at hvcomputer.com
Thu Nov 1 14:20:34 PDT 2007
Quoting Fairlight <fairlite at fairlite.com>:
> Yo, homey, in case you don' be listenin', Kroboth, Joe done said:
>> What is with linux/unix and screen colors? I'm reading that it works
>> but I need to create the color screens in windows/dos version then fp
>> transfer the stuff over. Not having the dos/windows version and not
>> having fp transfer makes this a little more than impossible. Is there
>> some insurmountable problem making color screens in linux that would
>> make fptech not include it 'define screen'?
It is a history thing.
A few years ago, on a day when the omission of color in Define
Screens for Linux had me peeved to new heights, I asked Ken "Why
the F%^&* not?". After 20 minutes of questions, I discovered
that Ken did not add color to *nix dscreen long, long ago because
*nix terminals did not have the function keys that DOS/Windows had.
As you recall, under DOS/Windows, you have to select the colors by
pressing SHFT-F4, CTRL-F1, ALT-F8, etc.
Bottom line: It was an interface issue.
With that in mind, I wrote some filePro code which allowed
users to select colors from a screen of colored blocks.
xx xx xx xx xx xx xx
xx [xx] xx xx xx xx xx
xx xx xx xx xx xx xx
(etc.)
It became the basis for fP Color Editor (also in Toolkit #1).
Extending it, I wrote code to read in filePro color settings
(TEXTNORMAL, TEXTINVERSE, POPUPNORMAL, POPUPINVERSE, etc.) and
allow a user to easily change these values. I took a copy of the
"select colors" code and wrote code to read in a screen
and display it. A bit more code to edit the attribute
portion of the screen file and I had a utility which lets
me add color to any existing screen in a snap.
> You don't need the DOS/Win versions. Turn it on by using a termcap with
> the OV attribute. Go into define screens and hit update. It'll tell you
> you're converting a monochrome screen to colour. You then "paint over" the
> screen.
>
> If you've already designed a screen, you're basically forced to redesign it
> a second time just to get the colours.
>
> Or you could try the suggestion about using Laura's tool, although I have
> -no- idea how it works. Maybe it takes the pain out of it.
That is basically what it does. My fP Screen Painter allows
you to easily choose foreground and background colors (pick
and choose from the displayed colors -- every combination is
possible) and then select areas of an existing screen to
apply the color.
Since filePro screens have a checksum and fP Technologies
has not made public the checksum algorithm, I was not
able to allow users to create new color screens or to edit
the text/fields on existing screens. The color attributes
of a screen do not impact the checksum, so I could have
my utility change that.
When you purchase the toolkit, you also get the source code
for all 3 utilities, so if you want to change something (fix
a bug or add a feature), you can, even if Bob and I have
ended up in the big bit bucket in the sky....
--
Laura Brody
+------------- Hudson Valley Computer Associates, Inc ----------+
| PO Box 859 120 Sixth Street http://www.hvcomputer.com |
| Verplanck, NY 10596-0859 Voice mail: Quoting Fairlight
<fairlite at fairlite.com>:
> Yo, homey, in case you don' be listenin', Kroboth, Joe done said:
>> What is with linux/unix and screen colors? I'm reading that it works
>> but I need to create the color screens in windows/dos version then fp
>> transfer the stuff over. Not having the dos/windows version and not
>> having fp transfer makes this a little more than impossible. Is there
>> some insurmountable problem making color screens in linux that would
>> make fptech not include it 'define screen'?
>
> You don't need the DOS/Win versions. Turn it on by using a termcap with
> the OV attribute. Go into define screens and hit update. It'll tell you
> you're converting a monochrome screen to colour. You then "paint over" the
> screen.
>
> If you've already designed a screen, you're basically forced to redesign it
> a second time just to get the colours.
>
> Or you could try the suggestion about using Laura's tool, although I have
> -no- idea how it works. Maybe it takes the pain out of it.
>
> mark->
> _______________________________________________
> Filepro-list mailing list
> Filepro-list at lists.celestial.com
> http://mailman.celestial.com/mailman/listinfo/filepro-list
>
--
Laura Brody
+------------- Hudson Valley Computer Associates, Inc ----------+
| PO Box 859 120 Sixth Street http://www.hvcomputer.com |
| Verplanck, NY 10596-0859 Voice mail: (914) 739-5004 |
+------ PC repair locally, filePro programming globally --------+
More information about the Filepro-list
mailing list