Subject: | Default Initialisation of background/foreground color |
Date: | Wed, 12 Jun 2013 13:55:25 +0200 |
To: | bug-Win32-Console-ANSI [...] rt.cpan.org <bug-Win32-Console-ANSI [...] rt.cpan.org> |
From: | Jörg Kreuzberger <j.kreuzberger [...] procitec.de> |
Hi!
I have an issue with command sessions, which are not with the default color (white on black).
Im using the module from my scripts an set only the foreground colors, not the background colors.
This leads to having black background.
If people have e.g inverted display (black on white) its broken after my script. If they apply "color", all output is "recollored", so my outputs also:
Suggestion (File ANSI.xs)
in line 450/451 the values for foreground/background are initialised with white and black.
Please use here the "attributes" WORD from CONSOLE_SCREEN_BUFFER_INFO Info used at line 443.
(e.g. by assigning Info.wAttributes and masking out all except fg/bg)
----
Jörg Kreuzberger, System-Ingenieur
PROCITEC GmbH
Rastatter Strasse 41
D-75179 Pforzheim
Fon: +49 (0) 7231 15561 49
Fax: +49 (0) 7231 15561-11
Mailto: j.kreuzberger@procitec.de
Mannheim HRB 504702
Geschäftsführer: Dipl.-Ing. (FH) Michael Brenk
This e-mail may contain confidential and/or legally protected information.
If you are not the intended recipient (or have received this e-mail in
error) please notify the sender immediately and delete this e-mail. Any unauthorized copying, disclosure or distribution of the material in this e-mail is strictly forbidden. Thank you!