Two questions about Zeus

Get help with the installation and running of the Zeus IDE. Please do not post bug reports or feature requests here. When in doubt post your question here.
Post Reply
357mag
Posts: 18
Joined: Sun Apr 24, 2016 9:48 pm

Two questions about Zeus

Post by 357mag »

Was wondering if there is a way to completely shut off that black external DOS window that appears briefly when you execute a .cpp file? I would like to set Zeus up so that my output goes directly to the white window since I like that much better.

And is there a way to change the font size in the output window?
jussij
Site Admin
Posts: 2650
Joined: Fri Aug 13, 2004 5:10 pm

Re: Two questions about Zeus

Post by jussij »

Was wondering if there is a way to completely shut off that black external DOS window that appears briefly when you execute a .cpp file?
Yes there is.

Zeus is running the code using a macro.

Now the reason you see some flicker is because Zeus doesn't know if the executable you are about to run will be asking for user input.

Naturally it assume the worst and as such it displays a console window, expecting some user interaction.

But in your case the program run did not interact with the user, so all you see some flicker when the console window is created and destroyed.

To fix this edit the macro as follows:

1. Open a C++ file

2. Go to the Macros section in the navigator panel on the left

3. Right click on the macro and select the View Source code option

You should see some code like this:

Code: Select all

# run the command as a MS-DOS command in a visible DOS window and wait for it to finish
flags = 16 + 32 + 64

# run the command which should be displayed in a DOS window
zeus.system(cmd, '', flags)
The 64 in those flag means this (as is also described in the Zeus help for the system function):

Code: Select all

-- 64 - run the program in a visible DOS session (otherwise runs hidden)
So change that flags like to be this:

Code: Select all

flags = 16 + 32
But, naturally this will cause problems if you later decide to write a C++ executable that does ask the user for input.

Another alternative is to just add a tool definition to the C++ document type and use that to tool to run the executable.

The tools setup allows you to easily control the visibility of the running program.
And is there a way to change the font size in the output window?
Yes. Do the following:

1. Options, Editor Options menu

2. Fonts Panel

3. From the Display View drop down list select all the different output views and change their fonts to suit.

Cheers Jussi
357mag
Posts: 18
Joined: Sun Apr 24, 2016 9:48 pm

Re: Two questions about Zeus

Post by 357mag »

Okay I got the font sizes looking bigger and nicer. Works good. I shut off that external DOS window also, but as you mentioned when I write a program that asks for user input things don't work again.

Isn't there a way to have the user enter his input in the same white output window that the program displays the program output? I have done this in other code editors like Crimson Editor. I never have to use that external DOS window at all.

Just wondering.

Thanks.
jussij
Site Admin
Posts: 2650
Joined: Fri Aug 13, 2004 5:10 pm

Re: Two questions about Zeus

Post by jussij »

Isn't there a way to have the user enter his input in the same white output window that the program displays the program output?

That is possible if the editor redirects the user input.

Unfortunately Zeus does not have that feature :(

Cheers Jussi
jussij
Site Admin
Posts: 2650
Joined: Fri Aug 13, 2004 5:10 pm

Re: Two questions about Zeus

Post by jussij »

I would like to set Zeus up so that my output goes directly to the white window since I like that much better.
The latest version of Zeus does allow the user to interact with the running tool by using the Zeus output window.

Cheers Jussi
Post Reply