Re: converting some LMI forth to swiftforth

From: Rick VanNorman <rvn_at_forth.com>
Date: Tue, 30 Mar 1999 09:27:46 -0800

>Date: Mon, 29 Mar 1999 19:29:47 -0600
>From: Dorothy Anway <dwanway_at_cpinternet.com>
>Subject: converting some LMI forth to swiftforth
>
>>From Allen Anway, Superior, WI
>I am converting some LMI forth to swiftforth for a client.
>
>1. Can I use the old IBM character set in swiftforth?
>2. Can I use the equivalent of FOREGROUND and BACKGROUND which set the
>color of the characters?

Allen,

The IBM character set is not supported directly. It was a font-based
thing that you can use if you select the "terminal" font in the
command window.

In windows, there are twenty mapped colors that are considered
to be the system colors. They are not RGB, but considered
to be palette-indexed colors. The SwiftForth command windows uses
these to render text on the screen. See the color selection dialog
under the options menu for a color picker.

The default colors are named.
The color map is kept in the table COLOR-TABLE.

To use them, set up the colors you are interested in in the
color table. If you only have four color patters, assign them
in the color selection dialog.
Then, you may use NORMAL, INVERSE, BRIGHT, and BOLD to select
which color to render text in.

For example:

: ZOT INVERSE ." This " BRIGHT ." is " BOLD ." a " NORMAL ." test" ;

There is a great deal more under the hood that can be accessed
and used if needed. Let me know.

Rick

.
Received on Tue Mar 30 1999 - 09:27:46 PST


Subscribe to our e-mail list service. It's free for all SwiftForth and SwiftX users!

This archive was generated 09-Feb-2012. Archive updated nightly.