[319] in bug-owl

home help back first fref pref prev next nref lref last post

Re: Owl in tty

daemon@ATHENA.MIT.EDU (James M. Kretchmar)
Tue Feb 24 15:50:46 2004

Message-Id: <200402242050.PAA22221@mission-control.mit.edu>
To: Clint M Lohse <cmlohse@MIT.EDU>
cc: bug-owl@MIT.EDU
In-Reply-To: Your message of "Tue, 24 Feb 2004 02:12:39 EST."
             <Pine.GSO.4.30L.0402240207320.16798-100000@vice-grips.mit.edu> 
Date: Tue, 24 Feb 2004 15:50:43 -0500
From: "James M. Kretchmar" <kretch@MIT.EDU>

> I'm trying to get Owl colors to work on a tty dialup (using PuTTY), but
> can't really find the right way to go about doing it.  I don't know perl
> or any code hacking at all, really.  In fact, about all I can do is
> comment out code.
> 
> Is there a nice, direct way to make colors work for me, or is it going to
> require me to deal in some other manner?

Yep, you can do it without knowing how to code.  The trickiest part is
getting the terminal to deal with colors correctly, try (before
running Owl) typing:

  add gnu
  setenv TERMINFO /mit/gnu/share/terminfo
  setenv TERM rxvt

You'll have to do this each time -- I'm looking into ways to make it
easier.  If the above doesn't work so well try "setenv TERM dtterm"
and see how that goes.  It won't require the "add gnu" and "setenv
TERMINFO" but it probably won't work as well.

Anyway, once you're in Owl you can create colors by using the "filter"
command at the Owl command prompt.  (Get to the command prompt by
pressing the colon key (:)).

If you wanted to turn all class "help" zephyr red, you would do:

  filter class-help -c red class ^help$

Or to color instance "weather" messages yellow:

  filter class-message-instance-weather -c yellow class ^message$ and instance ^weather$

You can view a list of all the colors with:

  show colors

You can read more about filters with "help filter" at the Owl command
prompt.  The "personal" filter is already built-in, so you could turn
all your personal messages white with:

  filter personal -c white

You can view all filters with:

  show filters

If you want to make any of these changes permanent, just stick the
word "startup" before the rest of the command:

  startup filter personal -c white

This will instruct Owl to keep this change across restarts
.. i.e. it'll be true every time you start Owl.  You can view your
startup options with:

  show startup

And "unstartup" before a command will remove it from the startup.
It's also really just stored in the file ~.owl/startup if you'd rather
edit it by hand.

Hope that helps,

kretch

home help back first fref pref prev next nref lref last post