Linux-Hams archive - March 1997: Re: listen

Re: listen

Heikki Hannikainen (mygtnar@nfgcorp.us)
Mon, 10 Mar 1997 08:31:29 +0200 (EET)


On Mon, 10 Mar 1997, Terry Dawson wrote:

> Wilson G. Hein wrote:
>
> > Is there a simple way to change one or two of the colors used by listen?
>
> Simple ? perhaps not. It would be nice for them to be configurable
> from a config file. Perhaps Hessu will put that on his todo list.

I'll think about it. I didn't go into hours of experimenting when
choosing the colors (my primary interest was in checking how this ncurses
stuff works 8-), so if someone comes up with a better color set, and
mails the init_pair() lines to me, they could show up in the distributed
version.

> If you look in the utils.c file in either the listen or the apps
> directory (depending on which version of ax25-tuils you have) at
> about line 94 you will see where the colors are defined.
> Each of the lines 'init_pair(' lists the foreground and background
> colours used for each of the T_xxxx types. Edit this file and
> recompile/reinstall and you should be fine.

And the available colors are:

COLOR_BLACK
COLOR_RED
COLOR_GREEN
COLOR_YELLOW
COLOR_BLUE
COLOR_MAGENTA
COLOR_CYAN
COLOR_WHITE

(see curs_color(3X) for details)

---
 < Heikki Hannikainen      <> ax.25:   oh7lzb@oh7rba.#kuo.fin.eu >
 < Internet: nhcnz.rgbgjcdm@macguff.fr <> Amprnet: uncjvftf@calumetlubricants.com >