Bug #183

ANSI escape sequence

Added by mustrum ridcully 318 days ago. Updated 97 days ago.

Status:Closed Start:09/16/2009
Priority:High Due date:
Assigned to:Yann BIZEUL % Done:

100%

Category:GeekTool Helper
Target version:-
Resolution:


Description

The reversed text ANSI escape sequence does not work.
The text is not shown, and only the background shows up as solid color.
The blinking text does not work as well, it is shown as normal text.
The low intensity text I'm not sure about, seems very like normal text, even in terminal

ANSI.sh - example script (350 Bytes) mustrum ridcully, 09/16/2009 08:08 AM

Immagine_1.png (123 KB) mustrum ridcully, 04/13/2010 09:12 AM

Immagine_2.png (74.1 KB) mustrum ridcully, 04/13/2010 09:12 AM

Schermata_2010-04-15_a_20.51.19.png (33.6 KB) mustrum ridcully, 04/15/2010 08:53 PM

Schermata_2010-04-15_a_20.51.47.png (82.9 KB) mustrum ridcully, 04/15/2010 08:53 PM

Associated revisions

Revision 297
Added by Yann BIZEUL 97 days ago

FIX #183 : Adjusted default colors to put white characters instead of transparent in some circumstances (which was useless). ANSI codes hadling seem pretty fair to me now

History

Updated by Yann BIZEUL 317 days ago

Geektool build number please ?

Updated by mustrum ridcully 317 days ago

Yann BIZEUL wrote:

Geektool build number please ?

It's 3.0 (11F), 287

Updated by Yann BIZEUL 110 days ago

  • Category set to GeekTool Helper
  • Status changed from New to Assigned
  • Assigned to set to Yann BIZEUL

Tested with 11F, it looks fine.
Yes, blinking is not handled, and I don't think it will, and reverse is handled correctly :
Normally, you write black text on transparent background.
Reverse that and you write transparent characters on black background :-) Just set background color before that.

I leave the ticket open to implement a better behavior for this (default to white characters instead of transparent)

Updated by mustrum ridcully 109 days ago

Yann BIZEUL wrote:

Tested with 11F, it looks fine. Yes, blinking is not handled, and I don't think it will, and reverse is handled correctly : Normally, you write black text on transparent background. Reverse that and you write transparent characters on black background :-) Just set background color before that.

I leave the ticket open to implement a better behavior for this (default to white characters instead of transparent)

Well, I wasn't really after blinking text, but I just thought of to point that out as well, just for the sake of completeness.
However, for me reversed text does not work as described. I just tested it again (on Leopard, for now) and I obtain the effect shown in the attached image (Immagine 1).
I set the Geeklet to use black text and transparent background, as you state.
I also tried with white text on black solid background, and the result is show in Immagine 2.
I have not a Snow Leopard box at hand right now, but I will try the same setup as soon as possible

Updated by mustrum ridcully 107 days ago

I tried with Snow Leopard as well, and the results are similar, as can be seen in the screenshots.

Updated by Yann BIZEUL 103 days ago

  • Priority changed from Normal to High

mustrum wrote:

I set the Geeklet to use black text and transparent background, as you state.

That's not what I ment, I ment that transparent background is quite natural for the window, but when it comes to characters color, it becomes tricky

I also tried with white text on black solid background, and the result is show in Immagine 2.

I was talking about ANSI sequences, if I'm right, and you specifically set black background and white character ANSI sequences, then you reverse, so it should be OK

But looking at your second screenshot, I see that anyways, something is going wrong, I'll take a look at this.

Updated by Yann BIZEUL 97 days ago

  • Status changed from Assigned to Closed
  • % Done changed from 0 to 100

Applied in changeset r297.

Also available in: Atom PDF