[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Detecting if a terminal can do reverse video
From: |
Dan Nelson |
Subject: |
Re: Detecting if a terminal can do reverse video |
Date: |
Thu, 16 Nov 2006 09:49:12 -0600 |
User-agent: |
Mutt/1.5.13 (2006-08-11) |
In the last episode (Nov 16), Mike Aubury said:
> Or more to the point - that it can't!
>
> Is there any easy way to detect this ?
>
> Background..
> I need to add some emphasis to the "current" menu option which I'm
> doing by making it in REVERSE video, but some terminals can't do
> reverse, so I'm supposed to put "[" and "]" around the option. I've
> got the code working with an environment variable, but it'd be nice
> if I could just detect it...
The belt-and-suspenders way would be to do both :) That way it works
even in odd cases like "start a screen session with a reverse-capable
terminal, detach, reattach with a noreverse terminal".
--
Dan Nelson
address@hidden