#79128 - 2002-09-10 05:36 PM
Screen colors always reset to grey on black
|
OptimumX
Fresh Scripter
Registered: 2002-09-07
Posts: 9
Loc: Denver, Colorado
|
The command prompt's screen colors are always reset to grey on black with v4.11, even if there are no color commands in the script. This behaviour is not noticeable if your command prompt is set to the default colors of grey text on a black background. I prefer a different color scheme, and any time KiX32.exe runs the screen colors are changed for no reason. Even the most simple no-op script or "KiX32.exe /?" changes the screen colors to grey on black. KiX32 v3.62 shows similar behaviour, but only when a script error occurs.
Please change this in an upcoming release.
Thanks,
Marty
|
|
Top
|
|
|
|
#79130 - 2002-11-24 08:51 PM
Re: Screen colors always reset to grey on black
|
OptimumX
Fresh Scripter
Registered: 2002-09-07
Posts: 9
Loc: Denver, Colorado
|
The release notes say "KiXtart now properly resets the console colour attibutes upon exit" but it is not fixed.
I just donwloaded 4.12 and the same exact thing is still happening, both with the KiX32 syntax and with all scripts, even simple one line scripts that do not change the screen colors.
I would love to move to 4.x for my login scripts, but I can't until this gets fixed. I know this may not seem like a big deal to some people, but in my environment it is.
|
|
Top
|
|
|
|
#79132 - 2002-12-01 12:06 AM
Re: Screen colors always reset to grey on black
|
MCA
KiX Supporter
   
Registered: 2000-04-28
Posts: 5152
Loc: Netherlands, EU
|
Dear,
We have test it also with an one line ? "hello" script and with a script with color statements. After completion of script kixtart resets the console colour attributes back to the original colors of your window. In both situations.
So for kixtart 4.12 release we doesn't have this problem. greetings.
|
|
Top
|
|
|
|
#79134 - 2003-01-03 12:25 AM
Re: Screen colors always reset to grey on black
|
OptimumX
Fresh Scripter
Registered: 2002-09-07
Posts: 9
Loc: Denver, Colorado
|
This is not fixed in the latest version.
I have tested it on 4 different machines, all with the same result.
If your "orginal" screen colors are grey text on black background, then you won't notice the problem.
Steps to reproduce:
1. Set your screen colors to something other than grey on black, like white text with blue background.
2. Run a simple one-line KiX script, or run KiX32.exe with no parameters.
3. The screen colors are set to grey text on black background.
4. Run the COLOR command, now the screen colors are correctly set back to the original colors.
|
|
Top
|
|
|
|
#79135 - 2003-01-09 12:46 AM
Re: Screen colors always reset to grey on black
|
Anonymous
Anonymous
Unregistered
|
Just tested this, and I can only reproduce the problem with 4.11. The problem does not occur with 4.12 or 4.20.
Please test this again using the latest 4.20 build. If the problem persists, please post the script and OS on which you are testing.
Kind regards,
Ruud
|
|
Top
|
|
|
|
#79139 - 2003-01-08 02:16 PM
Re: Screen colors always reset to grey on black
|
Anonymous
Anonymous
Unregistered
|
K,
will try
|
|
Top
|
|
|
|
#79141 - 2003-01-09 07:08 AM
Re: Screen colors always reset to grey on black
|
Anonymous
Anonymous
Unregistered
|
Aha, now I see what you mean: you would prefer KiXtart to start with the current colour settings, rather than the current default (w/n).
This is easy to do, and I'll consider it for 4.20. Note that it is different behaviour from previous versions, so it may affect existing scripts.
Regards,
Ruud
|
|
Top
|
|
|
|
#79143 - 2003-01-09 09:59 AM
Re: Screen colors always reset to grey on black
|
Richard H.
Administrator
   
Registered: 2000-01-24
Posts: 4946
Loc: Leatherhead, Surrey, UK
|
quote: Hmmm ... on the other side this also is easy to control by your script :
set your console to any sheme you like :
It's a minor niggle, but you may simply want to output text on an existing screen using the existing attributes. So, you don't want to clear the console, and you don't neccesarily know what the console colours are, so you can't set them in the script.
If it is an issue for extant scripts, maybe make it settable by SetOption before the first output.
If it is possible to get the console attributes when KiXtart starts this would be very useful, and could be used to set the colours accordingly in the script.
The current foreground and background colours, and the size of the console would be invaluable for sizing console application screens and presenting the output in the colour scheme that the user prefers rather than one imposed.
I'd also like to be able to "Peek()" at a console co-ordinate and get the character and colour attributes there, but now I'm getting a little off-topic
|
|
Top
|
|
|
|
#79144 - 2003-05-18 01:44 AM
Re: Screen colors always reset to grey on black
|
OptimumX
Fresh Scripter
Registered: 2002-09-07
Posts: 9
Loc: Denver, Colorado
|
I know this reply is extremely late, considering 4.20 was released months ago, but this is now working correctly (or at least the way I expect it to) in 4.20. Custom screen colors are left alone, no changes unless COLOR commands are called.
Thanks so much for fixing this Ruud, you're the best!
|
|
Top
|
|
|
|
#79147 - 2003-05-18 01:54 AM
Re: Screen colors always reset to grey on black
|
OptimumX
Fresh Scripter
Registered: 2002-09-07
Posts: 9
Loc: Denver, Colorado
|
Where was it released? The latest version on kixtart.org is 4.20, and the latest news is from February.
Is there a more current download site, or a more "official" Kixtart site?
Thanks,
Marty List
|
|
Top
|
|
|
|
Moderator: ShaneEP, Arend_, Jochen, Radimus, Glenn Barnas, Allen, Ruud van Velsen, Mart
|
0 registered
and 883 anonymous users online.
|
|
|