Page 1 of 2 12>
Topic Options
#79128 - 2002-09-10 05:36 PM Screen colors always reset to grey on black
OptimumX Offline
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
#79129 - 2002-09-12 10:11 AM Re: Screen colors always reset to grey on black
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
just wanted you to know:
http://www.kixtart.org/cgi-bin/ultimatebb.cgi?ubb=get_topic;f=3;t=000345

4.12 don't do that anymore...
_________________________
!

download KiXnet

Top
#79130 - 2002-11-24 08:51 PM Re: Screen colors always reset to grey on black
OptimumX Offline
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
#79131 - 2002-11-25 11:21 PM Re: Screen colors always reset to grey on black
macIntoz Administrator Offline
Administrator
*****

Registered: 2002-11-12
Posts: 22
you are correct on that one.
could you post ruud e-mail of this.

Top
#79132 - 2002-12-01 12:06 AM Re: Screen colors always reset to grey on black
MCA Offline
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.
_________________________
email scripting@wanadoo.nl homepage scripting@wanadoo.nl | Links | Summary of Site Site KiXforms FAQ kixtart.org library collection mirror MCA | FAQ & UDF help file UDF kixtart.org library collection mirror MCA | mirror USA | mirror europe UDF scriptlogic library collection UDFs | mirror MCA

Top
#79133 - 2002-12-01 12:14 AM Re: Screen colors always reset to grey on black
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
ok, that's correct too.
I just ran kix without script and then it behaves differently.
_________________________
!

download KiXnet

Top
#79134 - 2003-01-03 12:25 AM Re: Screen colors always reset to grey on black
OptimumX Offline
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
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
#79136 - 2003-01-08 02:02 PM Re: Screen colors always reset to grey on black
Shawn Administrator Offline
Administrator
*****

Registered: 1999-08-13
Posts: 8611
Ruud,

This may not be the same problem your thinking of. Im running 4.20a1 right now and notice that if you set the console to blue/white - all Kixtart output is still written as back/grey - it DOES reset the console colors back when done however. Running NT4/6a.

[ 08. January 2003, 14:03: Message edited by: Shawn ]

Top
#79137 - 2003-01-08 02:07 PM Re: Screen colors always reset to grey on black
Jochen Administrator Offline
KiX Supporter
*****

Registered: 2000-03-17
Posts: 6380
Loc: Stuttgart, Germany
WK2 SP3 , Kix 4.20A1 :

code:
break on

color b+/n

cls

"hello"

get $

color n/n

cls

get $

quit

works as expected !

J.
_________________________



Top
#79138 - 2003-01-08 02:10 PM Re: Screen colors always reset to grey on black
Shawn Administrator Offline
Administrator
*****

Registered: 1999-08-13
Posts: 8611
Captain - try setting the default colors through the right-click properties dialog of the console window. Then just do some plain-old text output.

[ 08. January 2003, 14:11: Message edited by: Shawn ]

Top
#79139 - 2003-01-08 02:16 PM Re: Screen colors always reset to grey on black
Anonymous
Unregistered


K,

will try

Top
#79140 - 2003-01-08 02:20 PM Re: Screen colors always reset to grey on black
Jochen Administrator Offline
KiX Supporter
*****

Registered: 2000-03-17
Posts: 6380
Loc: Stuttgart, Germany
Now I see ... hmmm ... isn't that splitting hairs ? Or am I wrong in seeing no sense anymore in coloured screen output ?

Wait, ok, I accept this to be an Issue (severity -1 though)
_________________________



Top
#79141 - 2003-01-09 07:08 AM Re: Screen colors always reset to grey on black
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
#79142 - 2003-01-09 09:39 AM Re: Screen colors always reset to grey on black
Jochen Administrator Offline
KiX Supporter
*****

Registered: 2000-03-17
Posts: 6380
Loc: Stuttgart, Germany
Hmmm ... on the other side this also is easy to control by your script :

set your console to any sheme you like :
code:
break on

color w+/b

cls

"Hello"

get $

even the Size of the box is easy (calling batch)

code:
@echo off
mode con cols=40 lines=50
kix32 %0\..\test.kix

_________________________



Top
#79143 - 2003-01-09 09:59 AM Re: Screen colors always reset to grey on black
Richard H. Administrator Offline
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 [Wink]

Top
#79144 - 2003-05-18 01:44 AM Re: Screen colors always reset to grey on black
OptimumX Offline
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
#79145 - 2003-05-18 01:45 AM Re: Screen colors always reset to grey on black
Sealeopard Offline
KiX Master
*****

Registered: 2001-04-25
Posts: 11165
Loc: Boston, MA, USA
Actually, KiXtart 4.21 has just been released.
_________________________
There are two types of vessels, submarines and targets.

Top
#79146 - 2003-05-18 01:54 AM Re: Screen colors always reset to grey on black
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
eh, he didn't say it was release months ago, did he? [Big Grin]
_________________________
!

download KiXnet

Top
#79147 - 2003-05-18 01:54 AM Re: Screen colors always reset to grey on black
OptimumX Offline
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
Page 1 of 2 12>


Moderator:  ShaneEP, Arend_, Jochen, Radimus, Glenn Barnas, Allen, Ruud van Velsen, Mart 
Hop to:
Shout Box

Who's Online
0 registered and 895 anonymous users online.
Newest Members
batdk82, StuTheCoder, M_Moore, BeeEm, min_seow
17885 Registered Users

Generated in 0.175 seconds in which 0.133 seconds were spent on a total of 13 queries. Zlib compression enabled.