forums.silverfrost.com Forum Index forums.silverfrost.com
Welcome to the Silverfrost forums
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Execution Background

 
Post new topic   Reply to topic    forums.silverfrost.com Forum Index -> Plato
View previous topic :: View next topic  
Author Message
stfark1



Joined: 02 Sep 2008
Posts: 210

PostPosted: Sun Apr 19, 2020 4:56 pm    Post subject: Execution Background Reply with quote

During the Fortran program execution, the default back ground and text is black with white text. I would like to reverse this and make the background white with black text. Any suggestions? Sid Kraft
Back to top
View user's profile Send private message
LitusSaxonicum



Joined: 23 Aug 2005
Posts: 2388
Location: Yateley, Hants, UK

PostPosted: Sun Apr 19, 2020 7:50 pm    Post subject: Reply with quote

Sid,

Use the WINAPP directive?

Eddie
Back to top
View user's profile Send private message
PaulLaidler
Site Admin


Joined: 21 Feb 2005
Posts: 7916
Location: Salford, UK

PostPosted: Mon Apr 20, 2020 8:23 am    Post subject: Reply with quote

If you have a simple Fortran program that does not use ClearWin+ then you will probably be running it as a "console" application.

Adding the WINAPP directive to the start of the code will change it to a "windows" application with the desired effect. This will be OK for output results but may not work for reading data from what was previously the console.

A console or "DOS box" or "Command prompt window" has its own properties (including background and text colour) which can be changed under program control but it would be quite tricky to do that.
Back to top
View user's profile Send private message AIM Address
John-Silver



Joined: 30 Jul 2013
Posts: 1520
Location: Aerospace Valley

PostPosted: Mon Apr 20, 2020 9:47 pm    Post subject: Reply with quote

Sid, IF as Paul suggests you're talking about a Console program/window, you can change it first by opening a console window, right-clicking on the caption bar, and selecting Options - then the Colours Tab - and change the background (and whatever other colours you fancy) there

The opened console window doesn't suddenly all change to a different coloured background, but if you hit and hold 'Enter', when the cursor reaches the bottom the background starts to change.

Alternatively, jus topen a new console window and the new background colour is present, so the system settings are changed, at least for the current session (I haven't tried logging out and back in to see if the changes are permanent or not.

Anyway, you have it as a back-up option which could be an instruction for the user.

Programatically, I'm sure we had a discussion somewhere on the forums quite a while back.
_________________
''Computers (HAL and MARVIN excepted) are incredibly rigid. They question nothing. Especially input data.Human beings are incredibly trusting of computers and don't check input data. Together cocking up even the simplest calculation ... Smile "
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    forums.silverfrost.com Forum Index -> Plato All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group